/* Ekvila website. One idea carries the design: the slanted bars of the logo.
   They appear as the hero's growing sets, as list markers and as the section rhythm. */

@font-face { font-family: Onest; src: url(/assets/fonts/onest-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Onest; src: url(/assets/fonts/onest-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Onest; src: url(/assets/fonts/onest-900.woff2) format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --ink: #0A0E27;
  --paper: #F5F6FA;
  --surface: #FFFFFF;
  --text: #0A0E27;
  --muted: #565C74;
  --line: #DFE2EC;
  --teal: #0097B1;
  --violet: #7C66EE;
  --pink: #F2368A;
  --focus: #0097B1;
  --ok: #0B7A4B;
  --err: #C0283A;
  --bar: linear-gradient(100deg, #0097B1 0%, #3C8BDF 30%, #8A71F1 62%, #E0479E 100%);
  --slant: -12deg;
  --font: Onest, -apple-system, 'Segoe UI', 'Hiragino Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A0E27;
    --surface: #131938;
    --text: #EEF0F8;
    --muted: #A3A9C2;
    --line: #262D52;
    --teal: #2CC3DB;
    --focus: #2CC3DB;
    --ok: #4FD69C;
    --err: #FF7486;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  text-rendering: optimizeLegibility;
}
:lang(ja), :lang(zh) { line-height: 1.75; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { height: 30px; width: auto; }
.brand .word { height: 17px; color: var(--text); }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.lang { appearance: none; font: 600 14px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 30px 7px 12px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 14px top 50%, right 9px top 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: 600 16px var(--font); text-decoration: none; cursor: pointer; }
@media (prefers-color-scheme: dark) { .btn { background: #fff; color: var(--ink); } }
.btn:hover { color: #fff; filter: brightness(1.15); }
@media (prefers-color-scheme: dark) { .btn:hover { color: var(--ink); } }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
@media (max-width: 760px) { .nav { display: none; } .top .btn.small { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.display {
  font-weight: 900;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  font-style: oblique 8deg;
  transform: skewX(-7deg);
  transform-origin: left center;
  padding-left: .06em;
}
:lang(ja) .display, :lang(zh) .display { transform: none; font-size: clamp(34px, 5vw, 60px); line-height: 1.15; letter-spacing: 0; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* the sets: the logo's three bars as a climbing bench press */
.sets { list-style: none; margin: 0; padding: 28px 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.sets-title { font-weight: 600; font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.set { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 12px; margin-bottom: 14px; }
.set:last-child { margin-bottom: 0; }
.set-n { font-size: 14px; color: var(--muted); font-weight: 600; }
.set-bar {
  position: relative; height: 54px; border-radius: 4px; transform: skewX(var(--slant));
  background: var(--bar);
  display: flex; align-items: center; padding: 0 18px; color: #fff; font-weight: 900; font-size: 20px;
  width: var(--w); animation: grow 900ms cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d);
}
.set-bar > span { transform: skewX(12deg); white-space: nowrap; }
.set-bar .pr { margin-left: auto; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.22); padding: 4px 10px; border-radius: 99px; }
@keyframes grow { from { width: 12%; opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .set-bar { animation: none; } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }
@media (max-width: 420px) { .set { grid-template-columns: 1fr; gap: 6px; } .set-bar { font-size: 17px; height: 48px; } .sets { padding: 20px 18px; } }

/* ---------- features ---------- */
.band { padding: 72px 0; border-top: 1px solid var(--line); }
.h2 { font-weight: 900; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 10px; transform: skewX(-8deg); transform-origin: left bottom; }
:lang(ja) .h2, :lang(zh) .h2 { transform: none; letter-spacing: 0; line-height: 1.25; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.pillar p.lead { font-size: 17px; margin-bottom: 18px; min-height: 3.2em; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 0 0 12px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .52em; width: 16px; height: 7px; border-radius: 1px; transform: skewX(var(--slant)); background: var(--bar); }
.pillar:nth-child(2) .ticks li::before { background-position: 50%; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 40px; } .pillar p.lead { min-height: 0; } }

.privacy .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 760px) { .privacy .wrap { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- beta ---------- */
.beta { background: var(--ink); color: #EEF0F8; padding: 80px 0; position: relative; overflow: hidden; }
.beta::before, .beta::after { content: ''; position: absolute; right: -60px; height: 46px; width: 46%; transform: skewX(var(--slant)); background: var(--bar); opacity: .9; }
.beta::before { top: 64px; width: 38%; }
.beta::after { top: 124px; }
.beta .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.beta .lead { color: #B9BED4; }
.beta a { color: #fff; }
.form { background: var(--surface); color: var(--text); border-radius: 20px; padding: 28px; display: grid; gap: 16px; margin-top: 120px; }
@media (max-width: 900px) { .beta .wrap { grid-template-columns: 1fr; gap: 8px; } .form { margin-top: 24px; } .beta::before, .beta::after { display: none; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input { font: 400 17px var(--font); color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.check a { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 15px; min-height: 1.4em; margin: 0; }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--err); }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 16px 32px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* ---------- legal & text pages ---------- */
.doc { padding: 56px 0 80px; }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.doc h1 { font-weight: 900; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; margin: 0 0 12px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.doc .notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 12px 16px; font-size: 15px; margin: 0 0 28px; }
.prose { max-width: 72ch; }
.prose h2 { font-weight: 900; font-size: 24px; line-height: 1.2; margin: 44px 0 12px; scroll-margin-top: 84px; }
.prose h3 { font-weight: 600; font-size: 19px; margin: 28px 0 8px; }
.prose li { margin-bottom: 8px; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose blockquote { margin: 0 0 24px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc p { font-weight: 600; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); }
@media (max-width: 900px) { .doc .wrap { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; color: var(--text); }
.foot p { margin: 4px 0; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }
