/* Chowmigo website — colours from the app's theme.ts ("night kitchen" dark palette) */
:root {
  --bg: #15121F;
  --bg-2: #1E1B2E;
  --surface: #2A2542;
  --surface-2: #3D3360;
  --line: #3A3454;
  --text: #F5EFE6;
  --muted: #BDB5D0;
  --tomato: #FF5B3A;
  --tomato-top: #FF7A55;
  --tomato-bottom: #F04A2C;
  --butter: #FFC531;
  --mint: #3DD68C;
  --grape: #6E5FEA;
  --cream: #FFFAF3;
  --ink: #1C1A24;
  --radius: 24px;
  --font: 'Plus Jakarta Sans', ui-rounded, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--butter);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 14px 28px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(var(--tomato-top), var(--tomato-bottom));
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(255, 91, 58, .7);
}
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 18, 31, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 0%, #43356F 0%, #231D3C 50%, transparent 80%);
  z-index: -2;
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; }
.glow-1 { width: 520px; height: 520px; right: -80px; top: 80px; background: rgba(255, 177, 58, .22); }
.glow-2 { width: 420px; height: 420px; right: 260px; top: 300px; background: rgba(255, 91, 58, .18); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
.hl {
  background: linear-gradient(90deg, var(--butter), var(--tomato-top) 60%, var(--tomato));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 24px; font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.lede strong { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--ink);
  padding: 10px 20px 10px 16px; border-radius: 14px;
  text-decoration: none; font-weight: 700; font-size: 1.1rem; line-height: 1.15;
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: .68rem; font-weight: 600; opacity: .7; }
.fineprint { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.center { text-align: center; }

.hero-phones { position: relative; height: 620px; }
.phone {
  margin: 0;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #3a3356, #1a1726);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08);
  width: 290px;
}
.phone img { border-radius: 34px; width: 100%; height: auto; }
.hero-phones .phone { position: absolute; }
.phone-front { left: 50%; top: 0; transform: translateX(-30%) rotate(4deg); z-index: 2; }
.phone-back { left: 50%; top: 60px; transform: translateX(-95%) rotate(-7deg); opacity: .9; width: 260px; }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0; text-align: center; }
.strip b { display: block; font-size: 1.3rem; color: var(--butter); }
.strip span { color: var(--muted); font-size: .92rem; }

/* Sections */
section { padding: 110px 0; }
.hero { padding-top: 72px; }
.strip { padding: 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
.sub { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }

/* Features */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
  padding: 56px; border-radius: 36px; margin-bottom: 32px;
  background: linear-gradient(160deg, rgba(61, 51, 96, .45), rgba(30, 27, 46, .6));
  border: 1px solid var(--line);
}
.feature .phone { justify-self: center; width: 280px; }
.feature.reverse .feature-copy { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: 18px 0 16px; }
.feature p { color: var(--muted); font-size: 1.08rem; }
.feature q { color: var(--text); font-style: italic; }
.feature-migo {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(110, 95, 234, .35), transparent 60%),
    linear-gradient(160deg, rgba(61, 51, 96, .55), rgba(30, 27, 46, .6));
}

.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--ink); }
.tag-butter { background: var(--butter); }
.tag-mint { background: var(--mint); }
.tag-tomato { background: var(--tomato-top); }
.tag-grape { background: var(--grape); color: #fff; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231C1A24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* Families */
.families { background: var(--bg-2); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }

.table-wrap { margin-top: 56px; overflow-x: auto; }
.perm { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; }
.perm caption { font-weight: 800; font-size: 1.4rem; margin-bottom: 18px; }
.perm th, .perm td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.perm thead th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.perm tbody th { font-weight: 600; }
.perm td { white-space: nowrap; font-weight: 700; }
.yes { color: var(--mint); }
.maybe { color: var(--butter); }
.no { color: #FF8A78; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 40px; }
.plan h3 { font-size: 1.4rem; }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--muted); }
.alt { color: var(--muted); font-size: .95rem; }
.plan-plus {
  background: linear-gradient(160deg, #4A3AC4, #2E2652 70%);
  border-color: rgba(110, 95, 234, .7);
  box-shadow: 0 30px 60px -25px rgba(91, 75, 214, .7);
}
.badge {
  position: absolute; top: -14px; right: 28px;
  background: var(--butter); color: var(--ink);
  font-weight: 800; font-size: .8rem; padding: 6px 14px; border-radius: 999px;
}
.pricing .fineprint { margin-top: 28px; }

/* FAQ */
.faq { background: var(--bg-2); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1rem;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--tomato-top); font-size: 1.5rem; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 12px; }

/* Final CTA */
.final { text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255, 177, 58, .2), transparent 70%);
}
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final img { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 20px 50px -15px rgba(255, 140, 60, .5); }
.final h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; max-width: 16em; }
.final p { color: var(--muted); font-size: 1.1rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer .brand { color: var(--text); font-size: 1.05rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer p { margin-left: auto; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-phones { height: 560px; }
  .feature { grid-template-columns: 1fr; padding: 40px 28px; gap: 40px; text-align: left; }
  .feature.reverse .feature-copy { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-phones { height: 470px; }
  .phone-front { width: 230px; }
  .phone-back { width: 200px; top: 50px; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .cards, .plans { grid-template-columns: 1fr; }
  .plan { padding: 32px 24px; }
  .feature .phone { width: 240px; }
  .perm td { white-space: normal; }
  .footer p { margin-left: 0; }
}

.plus {
  display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px;
  background: var(--grape); color: #fff; font-size: .72rem; font-weight: 700; vertical-align: 2px;
}

/* Legal pages */
.legal { padding: 56px 0 88px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; }
.legal .updated { color: var(--muted); margin-top: 10px; }
.legal section { padding: 0; margin-top: 40px; }
.legal h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--text); }
.legal ul:not(.ticks) { padding-left: 1.2em; margin: 8px 0 0; display: grid; gap: 6px; }
.legal a { color: var(--tomato-top); }
.legal .summary { margin-top: 36px; padding: 28px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.legal .summary h2 { margin-bottom: 0; }
.legal .summary li { color: var(--text); }
.legal .table-wrap { margin: 18px 0; }
.processors { max-width: none; }
.processors td { white-space: normal; font-weight: 400; color: var(--muted); vertical-align: top; }
.processors tbody th { vertical-align: top; white-space: nowrap; }
.ph { background: rgba(255, 197, 49, .18); color: var(--butter); border-radius: 6px; padding: 0 5px; font-weight: 600; }
@media (max-width: 720px) {
  .legal .summary { padding: 22px 20px; }
  .processors th, .processors td { padding: 10px 8px; font-size: .9rem; }
}
@media (max-width: 720px) {
  .processors thead { display: none; }
  .processors tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .processors th, .processors td { display: block; border: 0; padding: 2px 0; }
  .processors tbody th { font-size: 1rem; margin-bottom: 4px; }
  .processors td:nth-of-type(1) { color: var(--text); }
}
@media (max-width: 720px) {
  .legal { padding: 40px 0 64px; }
  .legal section { padding: 0; margin-top: 32px; }
}

/* Support page */
.support .intro { margin-top: 14px; font-size: 1.1rem; }
.contact-card {
  margin-top: 32px; padding: 28px 32px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 122, 85, .18), rgba(42, 37, 66, .9));
  border: 1px solid rgba(255, 122, 85, .35);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.contact-card > div { flex: 1 1 280px; }
.contact-card h2 { margin-bottom: 6px; }
.contact-card .btn { flex: none; }
.ph-btn { font-weight: 700; }
.support section h2 { margin-bottom: 4px; }
.support details { padding: 16px 0; }
.support summary { font-size: 1.02rem; }
.support details ul { margin-top: 10px; }
.support details p + p, .support details ul + p { margin-top: 10px; }

/* 404 */
.notfound { min-height: calc(100vh - 69px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound img { margin: 0 auto 24px; border-radius: 32px; box-shadow: 0 20px 50px -15px rgba(255, 140, 60, .5); }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
.notfound p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; margin: 16px auto 0; max-width: 30em; }
.notfound-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn-ghost { border: 1px solid var(--borderStrong, #8A81A6); color: var(--text); }
@media (max-width: 720px) {
  .contact-card { padding: 22px 20px; }
  .contact-card .btn { width: 100%; }
}
.legal .btn-primary { color: var(--ink); }
