/* Netty website — colors match the app tokens */
:root {
  --emerald: #0D6B4F;
  --emerald-pressed: #08523C;
  --mint: #DDF1E8;
  --mint-text: #0B6343;
  --bg: #F6F5F2;
  --bg-top: #FFFFFF;
  --surface: #FFFFFF;
  --tile: #EFEDE8;
  --border: #E6E3DC;
  --text: #1B1D22;
  --text-2: #5E6168;
  --text-3: #84817A;
  --flame: #FFF1E3;
  --radius: 20px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --emerald: #0F7A5A;
    --emerald-pressed: #0B5E45;
    --mint: #143A2D;
    --mint-text: #7FE0BB;
    --bg: #0E1311;
    --bg-top: #0E1311;
    --surface: #1A1F1D;
    --tile: #2A2E2C;
    --border: #2C332F;
    --text: #F2F3F1;
    --text-2: #A3A9A6;
    --text-3: #8C928F;
    --flame: #3A2814;
  }
  a { color: #4FD1A1; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 520px) var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--emerald); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg-top) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.3px; }
.app-icon { width: 36px; height: 36px; border-radius: 9px; background: #0D6B4F; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.app-icon img { height: 84%; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 24px; background: var(--emerald); color: #FFFFFF !important; text-decoration: none; font-weight: 600; font-size: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 20px rgba(13,107,79,.22); }
.btn:hover { background: var(--emerald-pressed); }
.btn svg { width: 20px; height: 20px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 19px; box-shadow: none; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { margin: 0 auto; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -1.4px; font-weight: 750; max-width: 760px; }
.hero h1 span { color: var(--emerald); }
@media (prefers-color-scheme: dark) { .hero h1 span { color: #4FD1A1; } }
.hero p.lead { margin: 18px auto 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 600px; }
.hero .cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero .meta { font-size: 13px; color: var(--text-3); }

.phones { margin: 56px auto 0; display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.phone { width: 260px; flex-shrink: 0; border-radius: 44px; padding: 9px; background: #1B1D22; box-shadow: 0 30px 60px rgba(27,29,34,.18), 0 2px 6px rgba(27,29,34,.12); }
.phone img { border-radius: 35px; width: 100%; height: auto; aspect-ratio: 390 / 844; }
.phones .phone.side { width: 220px; opacity: .97; }
.phones .phone.left { transform: translateX(40px) rotate(-6deg); margin-bottom: 18px; }
.phones .phone.right { transform: translateX(-40px) rotate(6deg); margin-bottom: 18px; }
.phones .phone.center { position: relative; z-index: 2; }
@media (max-width: 720px) {
  .phones .phone.side { display: none; }
  .phone { width: 240px; }
}

/* Sections */
section { padding: 72px 0; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--emerald); margin: 0 0 10px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #4FD1A1; } }
h2.title { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.8px; line-height: 1.1; }
.sub { margin: 12px 0 0; color: var(--text-2); font-size: 17px; max-width: 560px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .emoji { width: 52px; height: 52px; border-radius: 26px; background: var(--tile); display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; }
.feature h3 { margin: 16px 0 6px; font-size: 18px; letter-spacing: -0.2px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Screens */
.screens { margin-top: 40px; display: flex; gap: 22px; overflow-x: auto; padding: 4px 20px 24px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.screens::-webkit-scrollbar { height: 8px; }
.screens::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.screen { flex: 0 0 auto; width: 230px; scroll-snap-align: center; }
.screen .phone { width: 230px; border-radius: 40px; padding: 8px; box-shadow: 0 16px 36px rgba(27,29,34,.14); }
.screen .phone img { border-radius: 32px; }
.screen figcaption { margin-top: 14px; text-align: center; }
.screen figcaption b { display: block; font-size: 15px; }
.screen figcaption span { display: block; font-size: 13px; color: var(--text-2); }
@media (min-width: 1120px) { .screens { justify-content: flex-start; padding-left: calc((100vw - var(--max)) / 2 + 20px); } }

/* Privacy band */
.privacy-band { background: #0D6B4F; color: #FFFFFF; border-radius: 28px; padding: 48px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .privacy-band { grid-template-columns: 1fr; padding: 36px 24px; } }
.privacy-band h2 { margin: 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.8px; line-height: 1.1; }
.privacy-band p { margin: 12px 0 0; opacity: .88; font-size: 17px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.1); border-radius: 16px; padding: 14px 16px; font-size: 16px; font-weight: 500; }
.checks li::before { content: ""; width: 24px; height: 24px; flex-shrink: 0; border-radius: 12px; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D6B4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Pricing line + final CTA */
.final { text-align: center; }
.final .mascot { width: 168px; height: 168px; border-radius: 84px; background: var(--mint); margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; }
.final .mascot img { height: 126px; width: auto; }
.price-note { margin-top: 12px; font-size: 14px; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; margin-top: 24px; font-size: 14px; color: var(--text-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 20px 32px; }
.legal h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); letter-spacing: -1px; line-height: 1.1; }
.legal .updated { margin: 10px 0 0; color: var(--text-3); font-size: 14px; }
.legal .card { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; letter-spacing: -0.2px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; }
.legal .placeholder { border: 1.5px dashed var(--border); border-radius: 14px; padding: 14px 16px; color: var(--text-3); font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; text-decoration: none; margin-bottom: 18px; }

.final .sub { margin-left: auto; margin-right: auto; }

/* ---------- Mascot ---------- */
.mascot-img { display: block; height: auto; filter: drop-shadow(0 10px 18px rgba(13,107,79,.22)); }
.bubble { position: absolute; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 9px 13px; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px rgba(27,29,34,.08); }
.bubble::after { content: ""; position: absolute; width: 12px; height: 12px; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bubble.tail-down::after { left: 22px; bottom: -7px; transform: rotate(45deg); }
.bubble.tail-left::after { left: -7px; top: 50%; margin-top: -6px; transform: rotate(135deg); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } }
@keyframes wave { 0%, 100% { transform: rotate(var(--r, 0deg)); } 50% { transform: rotate(calc(var(--r, 0deg) + 6deg)); } }
@media (prefers-reduced-motion: reduce) { .float, .wave { animation: none !important; } }

/* Hero: mascot leaning on the phones */
.phones { position: relative; }
.hero-mascot { position: absolute; z-index: 3; right: calc(50% - 330px); bottom: -10px; width: 150px; }
.hero-mascot .mascot-img { width: 150px; --r: 10deg; animation: float 4s ease-in-out infinite; }
.hero-mascot .bubble { left: 70px; top: -40px; }
.hero-mascot .bubble.tail-down::after { left: 18px; }
@media (max-width: 720px) {
  .hero-mascot { right: 0; width: 96px; bottom: -24px; }
  .hero-mascot .mascot-img { width: 96px; }
  .hero-mascot .bubble { left: auto; right: -2px; top: -46px; font-size: 13px; }
  .hero-mascot .bubble.tail-down::after { left: auto; right: 22px; }
}

/* Features heading with mascot */
.head-with-mascot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.head-mascot { position: relative; flex-shrink: 0; width: 120px; margin-right: 10px; }
.head-mascot .mascot-img { width: 120px; --r: -10deg; transform: rotate(-10deg); animation: wave 3s ease-in-out infinite; transform-origin: 50% 90%; }
.head-mascot .bubble { right: 96px; top: 6px; }
@media (max-width: 640px) { .head-mascot { width: 84px; } .head-mascot .mascot-img { width: 84px; } .head-mascot .bubble { display: none; } }

/* Mascot tip inside a feature card */
.feature.tip { background: var(--mint); border-color: transparent; display: flex; align-items: center; gap: 14px; }
.feature.tip img { width: 64px; flex-shrink: 0; transform: rotate(-8deg); }
.feature.tip p { color: var(--mint-text); font-weight: 600; font-size: 15px; }
.features .tip { grid-column: 1 / -1; }

/* Screens: mascot peeking from the edge of the strip */
.screens-wrap { position: relative; }
.peek-right { position: absolute; right: 0; top: 120px; width: 120px; transform: rotate(-18deg); z-index: 2; pointer-events: none; }
@media (max-width: 900px) { .peek-right { display: none; } }

/* Privacy band: mascot sits on top of the band */
.privacy-band { position: relative; }
.band-mascot { position: absolute; right: 40px; top: -104px; width: 84px; transform: rotate(8deg); }
@media (max-width: 760px) { .band-mascot { right: 20px; top: -86px; width: 68px; } }
.privacy-band h2 { padding-right: 20px; }

/* Footer and legal */
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 28px; transform: rotate(-8deg); }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.legal-head img { width: 96px; transform: rotate(8deg); flex-shrink: 0; }
@media (max-width: 520px) { .legal-head img { width: 70px; } }

html, body { overflow-x: clip; }
.screens-wrap { overflow-x: clip; }

.title-mascot { display: inline-flex; align-items: center; gap: 12px; }
.title-mascot img { width: 44px; transform: rotate(-10deg); filter: drop-shadow(0 6px 10px rgba(13,107,79,.2)); }
#privacy { padding-top: 120px; }

/* Pose tweaks */
.head-mascot .point-left { width: 120px; transform: scaleX(-1); }
@media (max-width: 640px) { .head-mascot .point-left { width: 84px; } }
.feature.tip img { width: 58px; transform: none; }
.title-mascot img { width: 40px; transform: none; }
.band-mascot { transform: rotate(6deg); }
.foot-brand img { width: 24px; transform: none; }
.legal-head img { transform: none; }
.final .mascot img { height: 132px; }
.notfound { text-align: center; padding: 80px 20px 40px; }
.notfound img { width: 220px; margin: 0 auto 24px; }
.notfound h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.8px; }
.notfound p { color: var(--text-2); font-size: 17px; margin: 10px 0 26px; }

/* App Store badge */
.store-badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 60px; width: auto; }

.head-mascot .flame-pose { width: 124px; }
@media (max-width: 640px) { .head-mascot .flame-pose { width: 86px; } }

/* Legal text: links, lists, tables, code */
.legal .card a { color: var(--mint-text); text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal .card strong { color: var(--text); }
.legal ul { padding-left: 20px; margin: 8px 0 14px; }
.legal li { margin: 4px 0; }
.legal code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--tile); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.legal .table-wrap { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--border); border-radius: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.legal th { color: var(--text); font-weight: 600; background: var(--tile); }
.legal tr:last-child td { border-bottom: 0; }
@media (max-width: 520px) { .legal .card { padding: 20px; } }
.legal .card > :first-child { margin-top: 0; }
.legal .card > :last-child { margin-bottom: 0; }
