/* Gibbon website — "Molten" design system, matched to the in-app UI.
   Orange as layered atmosphere, espresso panels, warm bone/latte surfaces,
   big tight numerals. Nothing clinical-white anywhere. */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,800,900&display=swap');

:root {
  /* App palette (src/theme.js) */
  --orange: #FF6B05;       /* forest */
  --orange-2: #FF8A3D;     /* forestSoft */
  --orange-3: #FFB07A;     /* mint */
  --orange-deep: #D9480F;
  --rust: #B4480C;
  --ink: #2A1404;          /* ink / gold */
  --ink-2: #5C2D0A;        /* goldSoft */
  --ink-soft: #94704C;     /* inkSoft */
  --cream: #FFF5EC;        /* cream */
  --paper: #FDF2E4;        /* warm bone card */
  --sand: #F5E3CC;         /* latte sheet */
  --line: rgba(42, 20, 4, 0.08);
  --line-2: rgba(42, 20, 4, 0.14);
  --good: #2EB873;

  --shadow-sm: 0 1px 2px rgba(42,20,4,.05), 0 4px 14px rgba(42,20,4,.06);
  --shadow-md: 0 12px 30px rgba(42,20,4,.12), 0 2px 8px rgba(42,20,4,.05);
  --shadow-lg: 0 40px 80px rgba(42,20,4,.22), 0 14px 30px rgba(42,20,4,.10);
  --glow: 0 10px 30px rgba(255,107,5,.35), inset 0 1px 0 rgba(255,255,255,.25);

  --radius: 24px;
  --radius-sm: 16px;
  --maxw: 1120px;
  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 40%, var(--sand) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

a { color: var(--orange-deep); text-decoration: none; }
a:hover { color: var(--orange); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 245, 236, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -0.5px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(140deg, var(--orange-3), var(--orange) 55%, var(--orange-deep));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(255,107,5,.35), inset 0 1px 0 rgba(255,255,255,.3);
  overflow: hidden;
}
.brand .mark img { width: 80%; height: 80%; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

/* Buttons — espresso primary, molten-orange secondary (matches app CTAs) */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--cream);
  font-family: var(--font); font-weight: 800; font-size: 15.5px;
  padding: 14px 26px; border-radius: 999px;
  border: none; cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--cream); }
.btn.orange { background: linear-gradient(135deg, var(--orange-3), var(--orange) 58%, var(--orange-deep)); color: #fff; box-shadow: var(--glow); }
.btn.orange:hover { color: #fff; }
.btn.cream { background: var(--cream); color: var(--ink); }
.btn.cream:hover { color: var(--ink); }

/* Hero — full molten orange atmosphere with a wave into the sheet */
.hero {
  position: relative; padding: 96px 0 150px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255,176,122,.55), rgba(255,176,122,0) 60%),
    radial-gradient(100% 80% at 0% 10%, rgba(255,138,61,.45), rgba(255,138,61,0) 55%),
    linear-gradient(160deg, #FF7A1A 0%, var(--orange) 45%, #F25C00 100%);
}
/* The molten wave: the latte sheet rises into the orange, like the app. */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90 L0 40 C 240 0 480 80 720 55 C 960 30 1200 -10 1440 35 L1440 90 Z' fill='%23000'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90 L0 40 C 240 0 480 80 720 55 C 960 30 1200 -10 1440 35 L1440 90 Z' fill='%23000'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block; color: var(--cream); font-weight: 800; font-size: 12.5px;
  letter-spacing: 2px; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
}
.hero h1 { font-size: 68px; line-height: 1.0; letter-spacing: -2.6px; margin: 22px 0 20px; font-weight: 900; color: var(--cream); }
.hero p.lead { font-size: 20px; color: rgba(255,245,236,.92); max-width: 560px; margin: 0 0 32px; line-height: 1.55; }
.hero .cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.free-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.16); color: var(--cream);
  font-weight: 700; font-size: 13.5px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
}
.free-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

/* Sections */
section { padding: 66px 0; }
h2 { font-size: 44px; letter-spacing: -1.6px; margin: 0 0 12px; font-weight: 900; line-height: 1.04; color: var(--ink); }
.section-sub { color: var(--ink-soft); font-size: 18px; max-width: 580px; margin: 0 0 44px; }

/* Feature grid (cards) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card .ic {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(140deg, rgba(255,176,122,.30), rgba(255,107,5,.14));
  display: grid; place-items: center; margin-bottom: 16px;
  border: 1px solid rgba(255,107,5,.16);
}
.card h3 { margin: 0 0 7px; font-size: 19px; font-weight: 800; letter-spacing: -0.4px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Warm sheet band */
.band {
  background: linear-gradient(180deg, var(--sand), #F0DCC0);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* Espresso CTA band */
.cta-band { background: linear-gradient(150deg, #3a1d06, var(--ink)); }
.cta-band h2, .cta-band .section-sub { color: var(--cream); }
.cta-band .section-sub { color: rgba(255,245,236,.75); }

/* Footer */
footer { background: var(--ink); color: var(--cream); padding: 60px 0; margin-top: 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
footer a { color: var(--cream); opacity: 0.82; font-weight: 600; font-size: 15px; transition: opacity .15s; }
footer a:hover { opacity: 1; color: var(--cream); }
footer .col { display: flex; flex-direction: column; gap: 12px; }
footer .muted { opacity: 0.5; font-size: 13px; }

/* Legal / doc pages */
.doc .wrap { max-width: 780px; padding-top: 64px; padding-bottom: 90px; }
.doc .eyebrow { margin-bottom: 16px; color: var(--rust); background: rgba(255,107,5,.10); border-color: rgba(255,107,5,.18); }
.doc h1 { font-size: 50px; letter-spacing: -1.8px; margin: 0 0 8px; font-weight: 900; line-height: 1.04; color: var(--ink); }
.doc .updated { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 30px; font-weight: 500; }
.doc h2 { font-size: 25px; letter-spacing: -0.6px; margin: 44px 0 10px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; font-weight: 800; letter-spacing: -0.3px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { font-weight: 600; border-bottom: 1px solid rgba(217,72,15,.3); }
.doc a:hover { border-color: var(--orange); }

.toc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 26px 0 10px; box-shadow: var(--shadow-sm);
  columns: 2; column-gap: 28px;
}
.toc strong { display: block; margin-bottom: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--rust); column-span: all; }
.toc a { display: block; font-size: 15px; padding: 3px 0; color: var(--ink-2); border: none; }
.toc a:hover { color: var(--orange-deep); }

.note {
  display: flex; gap: 18px; align-items: flex-start;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,176,122,.22), rgba(255,107,5,0) 55%),
    var(--paper);
  border: 1px solid rgba(255,107,5,.20);
  padding: 22px 24px; border-radius: var(--radius); margin: 26px 0;
  box-shadow: var(--shadow-md);
}
.note-ic {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(140deg, var(--orange-3), var(--orange) 55%, var(--orange-deep));
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(255,107,5,.38), inset 0 1px 0 rgba(255,255,255,.35);
}
.note-body { flex: 1; }
.note-label {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--rust); margin-bottom: 5px;
}
.note-body p { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.note-body strong { color: var(--ink); font-weight: 800; }
.placeholder { background: #FFE6C2; color: #8A5B00; padding: 1px 7px; border-radius: 6px; font-weight: 700; font-size: 0.92em; }

/* Phone device frame — espresso bezel like the app's panels */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  position: relative; z-index: 1;
  width: 286px; max-width: 78vw;
  background: linear-gradient(160deg, #241608, #120a03);
  border-radius: 50px; padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
}
.phone img { display: block; width: 100%; border-radius: 41px; }

/* Hero two-column */
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 52px; align-items: center; position: relative; }
.hero .phone-wrap::before {
  content: ''; position: absolute; width: 120%; height: 120%; left: -10%; top: -8%;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.30), rgba(255,255,255,0) 60%);
  filter: blur(22px); z-index: 0;
}
.hero .phone { background: linear-gradient(160deg, #2c1a08, #140b03); box-shadow: 0 50px 90px rgba(60,20,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }

/* Alternating feature showcase */
.showcase .wrap { padding-top: 8px; padding-bottom: 8px; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 70px 0; border-top: 1px solid var(--line);
}
.feature-row:first-child { border-top: none; }
.feature-row.flip .phone-wrap { order: -1; }
.feature-row .tag {
  display: inline-block; color: var(--rust); font-weight: 800; font-size: 12px;
  letter-spacing: 1.6px; text-transform: uppercase;
  background: rgba(255,107,5,.10); padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,107,5,.16);
}
.feature-row .copy h3 { font-size: 34px; letter-spacing: -1.1px; margin: 14px 0 14px; font-weight: 900; line-height: 1.1; color: var(--ink); }
.feature-row .copy p { font-size: 17.5px; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.55; }
.feature-row .copy ul { margin: 0; padding: 0; list-style: none; }
.feature-row .copy li {
  color: var(--ink-2); font-size: 16px; margin-bottom: 11px; padding-left: 28px; position: relative; font-weight: 500;
}
.feature-row .copy li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 17px; height: 17px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-3), var(--orange-deep));
  box-shadow: 0 2px 6px rgba(255,107,5,.3);
}
.feature-row .copy li::after {
  content: ''; position: absolute; left: 5px; top: 10px; width: 5px; height: 8px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg);
}

/* Gallery strip */
.gallery { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.gallery .phone { width: 224px; }

/* ---------------------------------------------------------------------------
   Motion. All entrance/reveal states are gated on (a) the `js` class so the
   page is fully visible if scripts fail, and (b) no prefers-reduced-motion so
   we respect that setting. Keyframes are inert until referenced.
--------------------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes sheen { 0% { background-position: 0% 50%; } 100% { background-position: 120% 50%; } }

.nav { transition: box-shadow .25s ease, background .25s ease; }
.nav.scrolled { box-shadow: 0 8px 28px rgba(42,20,4,.12); background: rgba(255,245,236,.85); }
.btn, .card, .phone { will-change: transform; }
.feature-row .phone, .gallery .phone { transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease; }
.feature-row .phone-wrap:hover .phone, .gallery .phone:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow-lg); }

@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal */
  html.js .feature-row,
  html.js .card,
  html.js .gallery .phone,
  html.js section h2,
  html.js .section-sub,
  html.js .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  }
  html.js .feature-row.in,
  html.js .card.in,
  html.js .gallery .phone.in,
  html.js section h2.in,
  html.js .section-sub.in,
  html.js .reveal.in { opacity: 1; transform: none; }

  /* Stagger grouped items */
  html.js .grid .card:nth-child(2) { transition-delay: .07s; }
  html.js .grid .card:nth-child(3) { transition-delay: .14s; }
  html.js .grid .card:nth-child(4) { transition-delay: .07s; }
  html.js .grid .card:nth-child(5) { transition-delay: .14s; }
  html.js .grid .card:nth-child(6) { transition-delay: .21s; }
  html.js .gallery .phone:nth-child(2) { transition-delay: .08s; }
  html.js .gallery .phone:nth-child(3) { transition-delay: .16s; }
  html.js .gallery .phone:nth-child(4) { transition-delay: .24s; }
  html.js .gallery .phone:nth-child(5) { transition-delay: .32s; }

  /* Hero entrance, then a slow float on the phone */
  html.js .hero .copy > * { opacity: 0; animation: fadeUp .85s cubic-bezier(.16,1,.3,1) forwards; }
  html.js .hero .copy > *:nth-child(1) { animation-delay: .06s; }
  html.js .hero .copy > *:nth-child(2) { animation-delay: .14s; }
  html.js .hero .copy > *:nth-child(3) { animation-delay: .22s; }
  html.js .hero .copy > *:nth-child(4) { animation-delay: .30s; }
  html.js .hero .phone-wrap { opacity: 0; animation: fadeUp 1s cubic-bezier(.16,1,.3,1) .18s forwards; }
  html.js .hero .phone { animation: floaty 7s ease-in-out 1.2s infinite; }

  /* Living molten background: the orange very slowly drifts. */
  html.js .hero {
    background-size: 180% 180%, 180% 180%, 200% 200%;
    animation: sheen 22s ease-in-out infinite alternate;
  }
}

@media (max-width: 860px) {
  .hero { padding: 60px 0 110px; }
  .hero h1 { font-size: 44px; letter-spacing: -1.6px; }
  h2 { font-size: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid .phone-wrap { order: -1; }
  .grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 50px 0; text-align: center; }
  .feature-row .phone-wrap, .feature-row.flip .phone-wrap { order: -1; }
  .feature-row .copy ul { display: inline-block; text-align: left; }
  .doc h1 { font-size: 38px; }
  .toc { columns: 1; }
}
