/* Soup Connect site. Palette mirrors SoupTheme.kt (SoupColors.Light / SoupColors.Dark). */

:root {
  --bg: #FBF4E9;
  --surface: #F1E6D7;
  --surface-hi: #E9DBC8;
  --ink: #38291E;
  --muted: #726457;
  --accent: #A73825;
  --on-accent: #FFF9ED;
  --outline: #D6BFA9;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --shadow: 0 1px 2px rgb(56 41 30 / .06), 0 12px 32px -12px rgb(56 41 30 / .18);
  --wm-ink: #38291E;
  --wm-steam: #8F593D;
  --wm-steam-a: .549;

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-full: 999px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --emph: cubic-bezier(.2, 0, 0, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #251F1B;
    --surface: #382E27;
    --surface-hi: #43372F;
    --ink: #F3E8D9;
    --muted: #C1B1A1;
    --accent: #F6A185;
    --on-accent: #351D15;
    --outline: #675447;
    --accent-soft: color-mix(in srgb, var(--accent) 16%, var(--surface));
    --shadow: 0 1px 2px rgb(0 0 0 / .2), 0 16px 40px -16px rgb(0 0 0 / .55);
    --wm-ink: #F3E8D9;
    --wm-steam: #F8D7B7;
    --wm-steam-a: .651;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }
section[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 16px; border-radius: var(--r-full); z-index: 100; }
.skip:focus { left: 8px; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wordmark { display: block; height: 30px; width: auto; aspect-ratio: 296 / 62; }

/* Buttons: pill-shaped, springy press like M3 Expressive */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-full); border: 0;
  font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--spring), border-radius .35s var(--spring), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); border-radius: 16px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-tonal { background: var(--accent-soft); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--outline); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-sm .ic { width: 18px; height: 18px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: color-mix(in srgb, var(--outline) 60%, transparent); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); padding: 10px 16px; border-radius: var(--r-full); transition: background-color .2s, color .2s; }
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.topbar .btn { margin-left: 0; }
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 42px; padding: 0 12px; border-radius: var(--r-full); background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.lang .ic { width: 18px; height: 18px; flex: none; }
.lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding-right: 2px; max-width: 92px; }
.lang select:focus-visible { outline: none; }
.lang:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 559px) { .topbar-in { gap: 8px; } .lang select { max-width: 76px; } .topbar .btn-sm { padding: 0 12px; } .topbar .btn-sm span { display: none; } }
@media (min-width: 900px) {
  .nav { display: flex; }
  .lang { margin-left: 8px; }
}

/* Hero */
.hero { padding: 28px 0 56px; }
.hero-in { display: grid; gap: 24px; align-items: center; }
.hero-logo { width: 64px; height: 64px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.chip {
  display: inline-block; padding: 8px 14px; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(44px, 12vw, 92px); letter-spacing: -.02em; line-height: 1.02;
  margin: 18px 0 18px;
}
.accent { color: var(--accent); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 32ch; }
.hero-cta { display: grid; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-art { position: relative; justify-self: center; width: min(88vw, 520px); aspect-ratio: 1; order: -1; }
.blob {
  position: absolute; inset: 6%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 38%, var(--surface)), var(--surface) 70%);
  border-radius: 58% 42% 46% 54% / 50% 56% 44% 50%;
  animation: morph 14s ease-in-out infinite;
}
.bowl { position: relative; width: 82%; margin: 9% auto 0; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgb(0 0 0 / .18)); }
.float {
  position: absolute; padding: 10px 16px; border-radius: var(--r-full);
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow);
  font-weight: 700; font-size: 14px;
  animation: bob 7s ease-in-out infinite;
}
.f1 { top: 10%; left: -2%; }
.f2 { top: 42%; right: -4%; animation-delay: -2.3s; }
.f3 { bottom: 8%; left: 8%; animation-delay: -4.6s; }
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 46% 54% / 50% 56% 44% 50%; transform: rotate(0deg); }
  50% { border-radius: 44% 56% 58% 42% / 56% 44% 56% 44%; transform: rotate(8deg); }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 559px) {
  .hero-art { width: min(78vw, 360px); }
  .hero-logo { display: none; }
  .hero-cta .btn { width: 100%; }
}
@media (min-width: 560px) {
  .hero-cta { display: flex; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero { padding: 48px 0 96px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .hero-art { order: 0; width: 100%; }
}

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.sec-head { margin-bottom: 32px; max-width: 720px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 5vw, 50px); letter-spacing: -.015em; }
h3 { font-size: 21px; font-weight: 800; letter-spacing: -.005em; }
.sub { margin-top: 14px; color: var(--muted); font-size: 18px; }

.card {
  background: var(--surface); border-radius: var(--r-xl); padding: 28px;
  transition: transform .45s var(--spring), border-radius .45s var(--spring), background-color .3s;
}
.card p { color: var(--muted); margin-top: 10px; }
.card b { color: var(--ink); }

/* Features bento */
.bento { display: grid; gap: 16px; }
.card-feature:hover { transform: translateY(-4px); border-radius: 44px; }
.ico {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  transition: border-radius .6s var(--spring), transform .6s var(--spring);
}
.ico .ic { width: 26px; height: 26px; }
.card:hover .ico { border-radius: 50%; transform: rotate(-8deg) scale(1.06); }
.tone-accent { background: var(--accent); color: var(--on-accent); }
.tone-accent p, .tone-accent b { color: var(--on-accent); }
.tone-accent p { opacity: .86; }
.tone-accent .ico { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent); }
.tone-accent h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.flags { display: flex; gap: 8px; margin-top: 18px; }
.flags span { padding: 6px 12px; border-radius: var(--r-full); background: var(--bg); font-weight: 800; font-size: 13px; letter-spacing: .06em; }
.card-bot { display: grid; gap: 4px; }
.card-bot .btn { margin-top: 18px; justify-self: start; }
@media (max-width: 559px) { .card-bot .btn { justify-self: stretch; } }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } .span-2, .span-3 { grid-column: span 2; } }
@media (min-width: 980px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .span-3 { grid-column: span 3; }
  .card-bot { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
  .card-bot .ico { margin: 0; }
  .card-bot .btn { margin: 0; }
}

/* Tariffs */
.tariffs { display: grid; gap: 16px; }
@media (min-width: 640px) { .tariffs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tariffs { grid-template-columns: repeat(var(--cols, 4), 1fr); align-items: stretch; } }
.tariff { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--outline) 50%, transparent); }
.tariff:hover { transform: translateY(-6px); }
.tariff .t-name { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: .04em; color: var(--muted); }
.tariff .t-price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.02em; }
.tariff .t-cur { font-size: 24px; }
.tariff .t-term { margin-top: 8px; font-weight: 700; }
.tariff .t-month { margin-top: 2px; font-size: 14px; color: var(--muted); }
.tariff ul { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 10px; }
.tariff li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.tariff li .ic { width: 20px; height: 20px; color: var(--accent); }
.tariff .btn { margin-top: auto; width: 100%; }
.tariff.featured { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.tariff.featured .t-name, .tariff.featured .t-month { color: var(--on-accent); opacity: .8; }
.tariff.featured li .ic { color: var(--on-accent); }
.tariff.featured .t-price, .tariff.featured .t-term, .tariff.featured .t-cur { color: var(--on-accent); -webkit-text-fill-color: var(--on-accent); background: none; opacity: 1; }
.tariff.featured .btn { background: var(--on-accent); color: var(--accent); box-shadow: none; }
.badge {
  position: absolute; top: 20px; right: 20px; padding: 6px 12px; border-radius: var(--r-full);
  background: var(--on-accent); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
@media (min-width: 1040px) { .tariff.featured { transform: scale(1.04); } .tariff.featured:hover { transform: scale(1.04) translateY(-6px); } }
.skeleton { min-height: 340px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-hi) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
.tariff-empty { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; padding: 40px 32px; text-align: left; }
.tariff-empty h3 { font-family: var(--font-head); font-weight: 600; font-size: 26px; }
@media (max-width: 559px) { .tariff-empty .btn { width: 100%; } }

/* Download */
.platforms { display: grid; gap: 16px; }
@media (min-width: 900px) { .platforms { grid-template-columns: repeat(3, 1fr); } }
.platform { display: flex; flex-direction: column; }
.platform.detected { box-shadow: inset 0 0 0 2px var(--accent); }
.pf-head { display: flex; align-items: center; gap: 16px; }
.pf-head .ico { margin: 0; }
.pf-head h3 { font-family: var(--font-head); font-weight: 600; font-size: 24px; }
.pf-buttons { display: grid; gap: 10px; margin: 22px 0 18px; }
.pf-buttons .btn { width: 100%; min-height: 56px; }
.pf-buttons .meta { font-weight: 600; opacity: .75; font-size: 14px; }
.howto { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.platform.soon { grid-column: 1 / -1; }
.platform.soon .tag { background: var(--accent-soft); color: var(--ink); }
.soon-note { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.platform .tag { margin-left: auto; padding: 5px 10px; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }
.all-releases { margin-top: 22px; text-align: center; }
.all-releases a { color: var(--accent); font-weight: 700; text-decoration: none; }
.all-releases a:hover { text-decoration: underline; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step .num {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 28px;
  background: var(--accent); color: var(--on-accent);
  /* Scalloped "cookie" shape from the M3 Expressive shape set */
  clip-path: polygon(50% 0%, 61% 11%, 75% 7%, 79% 21%, 93% 25%, 89% 39%, 100% 50%, 89% 61%, 93% 75%, 79% 79%, 75% 93%, 61% 89%, 50% 100%, 39% 89%, 25% 93%, 21% 79%, 7% 75%, 11% 61%, 0% 50%, 11% 39%, 7% 25%, 21% 21%, 25% 7%, 39% 11%);
  transition: transform .8s var(--spring);
}
.step:hover .num { transform: rotate(45deg); }
.step a { color: var(--accent); font-weight: 700; }

/* FAQ */
@media (min-width: 980px) {
  .faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
  .faq-wrap .sec-head { position: sticky; top: 100px; }
}
.faq { display: grid; gap: 12px; }
.qa { padding: 0; border-radius: var(--r-lg); }
.qa[open] { border-radius: var(--r-xl); background: var(--surface-hi); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-weight: 700; font-size: 18px; line-height: 1.35; min-height: 64px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { transition: transform .4s var(--spring); color: var(--accent); }
.qa[open] summary .ic { transform: rotate(180deg); }
.qa p { margin: 0; padding: 0 24px 22px; }
.qa a { color: var(--accent); font-weight: 700; }

/* Footer */
.footer { margin-top: 32px; padding: 56px 0 28px; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer-in { display: grid; gap: 36px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-brand .wordmark { height: 36px; }
.footer-brand p { color: var(--muted); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 2px 0; }
.footer-links a:hover { color: var(--ink); }
.copy { margin-top: 40px; color: var(--muted); font-size: 14px; }
@media (min-width: 720px) { .footer-in { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Scroll reveal (only when JS is on) */
.js .reveal { transition: opacity .7s var(--emph), transform .9s var(--spring), border-radius .45s var(--spring), background-color .3s; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(28px) scale(.98); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
}
