/* Sunaoji website — procellari.com design language. Tokens in /static/brand.css. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; }
h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; }
h3 { font-size: 18px; font-weight: 500; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1240px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.eyebrow { font-family: var(--font-script); font-weight: 700; font-size: 25px; color: var(--warning); margin: 0 0 8px; line-height: 1.2; }
.eyebrow.light { color: #ffe0b8; }
.sub { color: var(--muted); margin: 10px auto 0; max-width: 60ch; }
.scribble { position: relative; color: var(--success); white-space: nowrap; }
.scribble::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .2em; background: var(--scribble) center / 100% 100% no-repeat; }

/* Buttons: pill with the procellari.com split gradient */
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 800px; background: var(--primary); background-image: var(--btn-split);
  color: #fff; font-weight: 500; box-shadow: 0 8px 20px rgba(115, 102, 255, .28); transition: transform .2s, box-shadow .2s; }
.cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(115, 102, 255, .35); }
.cta.big { padding: 14px 32px; font-size: 16.5px; }
.cta.light { background: #fff; background-image: none; color: var(--primary); box-shadow: none; }
.cta.light:hover { color: var(--primary-dark); }
.ghost-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 800px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; transition: border-color .2s, color .2s; }
.ghost-btn:hover { border-color: var(--primary); color: var(--primary); }
.ghost-btn.light { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.ghost-btn.light:hover { border-color: #fff; color: #fff; }
.play-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); position: relative; flex: none; }
.play-ico::after { content: ""; position: absolute; left: 11px; top: 8px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #fff; }
.playing .play-ico::after { left: 9px; top: 9px; width: 10px; height: 10px; border: 0; background: linear-gradient(90deg, #fff 35%, transparent 35% 65%, #fff 65%); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-2); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; color: var(--ink); }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { color: var(--text); font-size: 15px; }
.menu a:hover { color: var(--primary); }
.menu .signin { color: var(--ink); font-weight: 500; }
.menu .cta { color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: var(--gradient-soft); padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lead { font-size: 18px; color: var(--text); margin: 22px 0 30px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: var(--ink); }
.ticks li::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: 8px; }

.call-card { margin: 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.2deg); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg); padding: 3px 10px; border-radius: 6px; }
.call-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 6px; }
.call-head b { display: block; color: var(--ink); font-weight: 500; }
.call-head small { color: var(--muted); }
.live { font-size: 12.5px; font-weight: 500; color: var(--success); background: var(--success-soft); padding: 4px 10px; border-radius: 6px; }
.live::before { content: "●"; margin-right: 6px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.msgs { padding: 10px 20px; display: grid; gap: 10px; }
.m { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 15.5px; color: var(--ink); max-width: 88%; }
.m span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.m.agent { background: var(--primary-soft); border-top-left-radius: 3px; }
.m.caller { background: var(--warning-soft); border-top-right-radius: 3px; justify-self: end; }
.extract { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 20px; border-top: 1px dashed var(--line); margin-top: 6px; }
.extract span { font-family: var(--mono); font-size: 12px; background: var(--bg); padding: 4px 9px; border-radius: 6px; color: var(--ink); }
.extract b { color: var(--primary); font-weight: 500; margin-right: 6px; }

/* Sections */
.block { padding: clamp(64px, 9vw, 112px) 0; }
.block.soft { background: var(--gradient-soft); }
.block h2 + .grid3, .block h2 + .steps { margin-top: 48px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.feat, .cases article { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); transition: transform .25s, box-shadow .25s, border-color .25s; }
.feat:hover, .cases article:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(115, 102, 255, .35); }
.feat p, .cases p { margin: 10px 0 0; color: var(--text); font-size: 15px; }
.ico { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; font-size: 22px; font-weight: 500; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 500; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 800px; margin-bottom: 12px; }

/* Languages (signature): native script, real recordings */
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 44px; }
.lang { position: relative; text-align: left; font: inherit; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.lang:hover, .lang.playing { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.lang .native { font-size: 30px; color: var(--ink); line-height: 1.3; padding-right: 40px; }
.lang .meta { font-size: 13px; color: var(--muted); }
.lang .meta b { color: var(--primary); font-weight: 500; }
.lang .line { font-size: 14.5px; color: var(--text); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lang .play-ico { position: absolute; top: 22px; right: 20px; width: 34px; height: 34px; }
.lang .play-ico::after { left: 13px; top: 10px; border-width: 7px 0 7px 11px; }
.lang.playing .play-ico::after { left: 11px; top: 11px; width: 12px; height: 12px; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); color: #fff;
  display: grid; place-items: center; font-weight: 500; font-size: 18px; box-shadow: 0 8px 20px rgba(115, 102, 255, .3); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 58px; right: -12px; border-top: 2px dashed rgba(115, 102, 255, .3); }
.steps p { margin: 8px 0 0; font-size: 15px; }

/* FAQ */
#faq h2 { margin-bottom: 32px; }
details { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0 22px; margin-bottom: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
summary { cursor: pointer; padding: 18px 0; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; }

/* Final CTA + footer */
.final { background: var(--gradient); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.final-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final h2 { color: #fff; max-width: 20ch; }
.foot { padding: 28px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--text); }
.by { display: flex; align-items: center; gap: 8px; color: var(--muted); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; }
  .call-card { transform: none; max-width: 560px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
  .menu .cta { margin-top: 12px; justify-content: center; border: 0; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .lead { font-size: 16.5px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Dark theme touches */
:root[data-theme="dark"] .menu-btn span { background: var(--ink); }
:root[data-theme="dark"] .call-card { border: 1px solid var(--line); }
:root[data-theme="dark"] .lang, :root[data-theme="dark"] .feat, :root[data-theme="dark"] .cases article, :root[data-theme="dark"] details { border-color: var(--line); }
@media (max-width: 760px) { .theme-btn .theme-label { display: none; } .menu .theme-btn { align-self: flex-start; margin: 10px 0 0; } }
