/* Shaketail landing page. Tiki palette and type from the app (lib/core/theme.dart). */
:root {
  --bg: #FFF3E2;
  --bg-2: #FFE8C7;
  --surface: #FFFFFF;
  --line: #EBD3AE;
  --ink: #1B2B2A;
  --sub: #4E5D5B;
  --teal: #0F6B63;
  --on-teal: #FFFFFF;
  --coral: #F2674A;
  --sun: #F6C343;
  --on-bright: #1B2B2A;
  --link: #0B5750;
  --phone: #1B2B2A;
  --shadow: rgba(27, 43, 42, .16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F2224;
    --bg-2: #16302F;
    --surface: #16302F;
    --line: #2C4644;
    --ink: #F4EDE0;
    --sub: #B4C4BF;
    --teal: #1F7A70;
    --on-teal: #FFFFFF;
    --link: #F6C343;
    --phone: #0A1718;
    --shadow: rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 18px/1.6 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--link); font-weight: 800; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.display { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand span { font: 800 22px/1 "Bricolage Grotesque", system-ui, sans-serif; }
.nav nav { display: flex; gap: 18px; font-size: 15px; }
.nav nav a { color: var(--sub); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding-block: 24px 64px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 3px 0 var(--line); font-size: 14px; font-weight: 800;
}
.chip b { background: var(--coral); color: var(--on-bright); border-radius: 8px; padding: 1px 7px; font-size: 13px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: .98; margin: 18px 0 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--coral); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--sub); max-width: 34ch; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 28px;
  font: 800 17px/1 "Nunito Sans", system-ui, sans-serif; text-decoration: none; border: 0;
}
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 0 4px 0 var(--coral); }
.btn-primary small { font-weight: 700; opacity: .75; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--surface); }

.hero-art { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 380 / 640; }
.hero-art .disc {
  position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: var(--sun);
  right: -12%; top: 6%;
}
.hero-art .phone { position: absolute; left: 6%; top: 0; width: 76%; transform: rotate(-5deg); }
.hero-art .float {
  position: absolute; border-radius: 20px; padding: 12px 16px; box-shadow: 0 5px 0 var(--shadow);
  font-weight: 800; line-height: 1.1;
}
.hero-art .float strong { display: block; font: 800 34px/1 "Bricolage Grotesque", system-ui, sans-serif; }
.float-a { background: var(--teal); color: var(--on-teal); left: -4%; bottom: 14%; transform: rotate(-4deg); }
.float-b { background: var(--coral); color: var(--on-bright); right: -2%; top: 18%; transform: rotate(5deg); }

/* ---------- phone frame ---------- */
.phone {
  border: 9px solid var(--phone); border-radius: 38px; overflow: hidden; background: var(--phone);
  box-shadow: 0 10px 0 var(--shadow);
}
.phone img, .phone video { width: 100%; height: auto; border-radius: 29px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 8px 72px; }
.stat {
  border-radius: 24px; padding: 20px 20px 18px; box-shadow: 0 5px 0 var(--shadow);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.stat:nth-child(1) { background: var(--teal); color: var(--on-teal); transform: rotate(-2deg); }
.stat:nth-child(2) { background: var(--sun); color: var(--on-bright); transform: rotate(1.5deg); }
.stat:nth-child(3) { background: var(--coral); color: var(--on-bright); transform: rotate(-1deg); }
.stat:nth-child(4) { background: var(--surface); color: var(--ink); transform: rotate(2deg); }
.stat:hover { transform: rotate(0) translateY(-4px); }
.stat .num { font: 800 clamp(40px, 5vw, 58px)/1 "Bricolage Grotesque", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.stat .label { font-weight: 800; font-size: 15px; margin-top: 6px; }

/* ---------- sections ---------- */
section { padding-block: 56px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin: 0 0 10px; }
h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; margin: 0 0 16px; text-wrap: balance; }
.section-lede { color: var(--sub); max-width: 52ch; margin: 0 0 28px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--surface); border-radius: 24px; padding: 24px; box-shadow: 0 5px 0 var(--line);
  counter-increment: step; position: relative;
}
.step::before {
  content: counter(step); position: absolute; top: -14px; left: 20px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--sun); color: var(--on-bright); font: 800 18px/36px "Bricolage Grotesque", system-ui, sans-serif; text-align: center;
}
.step .icon { width: 56px; height: 56px; border-radius: 18px; background: var(--bg-2); display: grid; place-items: center; margin: 10px 0 14px; }
.step .icon svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font: 800 22px/1.2 "Bricolage Grotesque", system-ui, sans-serif; margin: 0 0 6px; }
.step p { margin: 0; color: var(--sub); font-size: 16px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature-media { position: relative; display: flex; justify-content: center; }
.feature-media .phone { width: min(100%, 300px); }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 34px; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--sun)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2B2A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tag { display: inline-block; white-space: nowrap; background: var(--sun); color: var(--on-bright); border-radius: 10px; padding: 2px 10px; font-weight: 800; font-size: 15px; }

.pair { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1.36; }
.pair .phone { position: absolute; width: 58%; }
.pair .phone:first-child { left: 0; top: 30px; transform: rotate(-4deg); z-index: 1; }
.pair .phone:last-child { right: 0; top: 0; transform: rotate(4deg); }

.celebrate {
  width: min(100%, 340px); border-radius: 32px; overflow: hidden; box-shadow: 0 10px 0 var(--shadow);
  transform: rotate(-2deg); background: #6F6A60;
}
.celebrate video { width: 100%; height: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini { background: var(--surface); border-radius: 22px; padding: 20px; box-shadow: 0 4px 0 var(--line); }
.mini h3 { font: 800 19px/1.25 "Bricolage Grotesque", system-ui, sans-serif; margin: 0 0 4px; }
.mini p { margin: 0; color: var(--sub); font-size: 16px; }

.band {
  background: var(--ink); color: var(--bg); border-radius: 36px; padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-block: 32px 24px;
}
.band h2 { color: var(--bg); margin: 0 0 8px; }
.band p { margin: 0; opacity: .8; }
.band .btn { background: var(--sun); color: var(--on-bright); box-shadow: 0 4px 0 var(--coral); }
.band .btn + .btn { background: var(--bg); color: var(--ink); }

footer { padding-block: 24px 48px; color: var(--sub); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--sub); }

/* ---------- motion ---------- */
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero-art .phone { animation: bob 6s ease-in-out infinite; }
.float-a { animation: bob 5s ease-in-out infinite .6s; }
.float-b { animation: bob 5.5s ease-in-out infinite 1.2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .phone, .float-a, .float-b { animation: none; }
  .stat { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero-art { width: min(86%, 340px); margin-top: 8px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps, .grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-media { order: 0; }
  .band { grid-template-columns: 1fr; }
  .nav nav a.hide-sm { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .stat { padding: 16px; }
}

/* Language switch in the top bar: the other language's copy of the page (site/lang.js). */
.nav nav a.lang-switch {
  border: 2px solid var(--line); border-radius: 999px; padding: 2px 12px;
  color: var(--ink); font-weight: 800;
}
