/* Pixnest website — same tokens as the app (lib/core/theme/tokens.dart). */
@font-face { font-family: "Jakarta"; src: url(fonts/PlusJakartaSans-400.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(fonts/PlusJakartaSans-600.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(fonts/PlusJakartaSans-700.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(fonts/PlusJakartaSans-800.ttf) format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(fonts/Caveat-600.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --lime: #B5F35B; --lime-soft: #D4F79A; --on-lime: #151515;
  --text: #151515; --muted: #5f5f5b; --bg: #F7F7F4; --surface: #FFFFFF;
  --surface-alt: #F0F0EB; --border: #EAEAEA; --inverse: #151515; --on-inverse: #FFFFFF;
  --forest: #1F5E26; --shadow: 0 24px 60px rgba(30, 60, 20, .16);
  --radius: 24px; --gutter: 20px; --max: 1160px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --lime-soft: #2E3B1C; --text: #F3F3EE; --muted: #A3A39C; --bg: #0F100E;
    --surface: #191A17; --surface-alt: #22241F; --border: #2C2E29;
    --inverse: #F3F3EE; --on-inverse: #151515; --forest: #B5F35B;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Jakarta", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
b, strong { font-weight: 800; }
u { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: .18em; text-underline-offset: .12em; font-weight: 800; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--on-lime); box-shadow: 0 10px 24px rgba(140, 200, 60, .35); }
.btn-ghost { border: 1.5px solid var(--border); background: var(--surface); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* -------------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.5px; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--text); }

/* ------------------------------------------------------------------- hero */
.hero { padding: 56px 0 24px; background: radial-gradient(circle at 78% 30%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 55%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 700; color: var(--forest); letter-spacing: .3px; margin: 0 0 12px; }
h1 { font-size: clamp(42px, 6.4vw, 74px); line-height: 1.02; letter-spacing: -.04em; font-weight: 400; margin: 0 0 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.hand { font-family: "Caveat", cursive; font-size: 28px; line-height: 1.05; margin: 0; }
.hero-art { position: relative; min-height: 560px; }
.hand-1 { position: absolute; right: 0; top: -6px; transform: rotate(-5deg); text-align: right; z-index: 2; }
.hand-2 { position: absolute; left: 0; bottom: 268px; transform: rotate(-8deg); z-index: 5; background: var(--bg); padding: 2px 10px; border-radius: 14px; }
.phones { position: absolute; inset: 60px 0 0 20%; }
.phone { position: absolute; margin: 0; width: 38%; max-width: 230px; aspect-ratio: 585/1266; border-radius: 34px; padding: 7px; background: linear-gradient(145deg, #3a3d38, #121311); box-shadow: var(--shadow); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; }
.p1 { left: 0; top: 30px; transform: rotate(-4deg); }
.p2 { left: 31%; top: 0; z-index: 2; }
.p3 { left: 62%; top: 40px; transform: rotate(4deg); }
.hero-pixy { position: absolute; left: -4%; bottom: 0; width: 46%; max-width: 250px; z-index: 4; filter: drop-shadow(0 18px 24px rgba(0,0,0,.12)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1deg); } }

/* ------------------------------------------------------------------ stats */
.stats { padding: 28px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 18px 28px; }
.stats-inner div { display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--border); }
.stats-inner div:last-child { border-right: 0; }
.stats-inner strong { font-size: 30px; letter-spacing: -.03em; }
.stats-inner span { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- sections */
section { padding: 64px 0; }
.section-title { font-size: clamp(32px, 4.4vw, 48px); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 32px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 18px 0 6px; font-size: 20px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--lime); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--on-lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.how-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; background: var(--lime-soft); border-radius: 40px; padding: 40px; }
.how .section-title { margin-bottom: 18px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 58px; font-size: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--inverse); color: var(--on-inverse); display: grid; place-items: center; font-weight: 800; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots img { border-radius: 28px; border: 6px solid #1b1c1a; box-shadow: var(--shadow); }
.shots figcaption { text-align: center; font-weight: 700; margin-top: 12px; }

.privacy { background: #151515; color: #F3F3EE; border-radius: 48px; margin: 0 var(--gutter); }
.privacy-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.privacy h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 400; letter-spacing: -.035em; margin: 0 0 22px; }
.privacy h2 b { color: var(--lime); }
.checks { list-style: none; padding: 0; margin: 0 0 30px; }
.checks li { padding-left: 38px; position: relative; margin-bottom: 12px; font-size: 18px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: #151515; display: grid; place-items: center; font-size: 14px; font-weight: 800; }

.faq-inner { max-width: 820px; }
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

.final-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 400; letter-spacing: -.035em; margin: 8px 0 24px; }

/* ------------------------------------------------------------------ legal */
.legal { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 22px; letter-spacing: -.02em; margin: 36px 0 8px; scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--text); }
.legal .meta { color: var(--muted); font-style: italic; }
.legal ul { padding-left: 22px; }
.legal li::marker { color: var(--forest); }
.legal-also { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal-aside img { position: sticky; top: 100px; }
.notfound { text-align: center; padding: 80px var(--gutter); display: flex; flex-direction: column; align-items: center; }
.notfound h1 { font-size: 40px; font-weight: 800; }

/* ----------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand span { color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 600; font-size: 15px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.fine { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 0; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-inner, .how-inner, .privacy-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; max-width: 560px; width: 100%; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-template-columns: 1fr; }
  .legal-aside { display: none; }
  .privacy-inner img { max-width: 240px; margin: 0 auto; }
  .how-pixy { max-width: 220px; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding-top: 32px; }
  .hero-art { min-height: 430px; }
  .phones { left: 18%; }
  .phone { border-radius: 24px; padding: 5px; }
  .phone img { border-radius: 20px; }
  .hand { font-size: 22px; }
  .hand-2 { bottom: 190px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); border-radius: 28px; row-gap: 16px; }
  .stats-inner div:nth-child(2) { border-right: 0; }
  .cards { grid-template-columns: 1fr; }
  .how-inner { padding: 28px 22px; border-radius: 32px; }
  .shots { gap: 12px; }
  .shots img { border-radius: 18px; border-width: 4px; }
  .privacy { border-radius: 32px; margin: 0 10px; }
  .foot-inner { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn-sm { width: auto; }
}
