/* Veltie site. Colours and type follow the app (app/lib/theme.dart). */
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --paper: #F5F8F2;
  --paper-deep: #E7EFE3;
  --card: #FFFFFF;
  --ink: #1F2B22;
  --ink-soft: #55635A;
  --tree: #2F6B3A;
  --tree-hi: #3D8049;
  --tree-lo: #27592F;
  --tree-soft: #DBEBDC;
  --grass: #CFA238;
  --grass-lo: #B0862A;
  --flower: #C0527F;
  --flower-lo: #A2406A;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(31, 43, 34, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 18px/1.55 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tree); }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 20px; }
.narrow { width: min(760px, 100%); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 14px; border-radius: 999px; z-index: 10; }
:focus-visible { outline: 3px solid var(--tree); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(245, 248, 242, .88); backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tree); font-weight: 800; font-size: 1.55rem; }
.brand img { border-radius: 11px; }
nav { display: flex; gap: 4px; }
nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
nav a:hover { background: var(--tree-soft); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(28px, 6vw, 72px) clamp(40px, 7vw, 88px); background: linear-gradient(180deg, var(--paper-deep), var(--paper)); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { color: var(--tree); font-weight: 800; margin-bottom: 12px; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--ink-soft); margin-top: 18px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.pill-solid { background: var(--tree); color: #FBFDF9; }
.pill-soft { background: var(--tree-soft); color: var(--tree-lo); }
.pill-soft:hover { background: #CBE2CD; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 34px 0 0; }
.stats div { min-width: 0; }
.stats dt { font-size: 2rem; font-weight: 800; color: var(--tree); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats dd { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.leaf { position: absolute; fill: var(--tree-soft); opacity: .7; pointer-events: none; }
.leaf-a { width: 360px; right: -90px; top: -60px; transform: rotate(28deg); }
.leaf-b { width: 240px; left: -90px; bottom: -110px; transform: rotate(-32deg); opacity: .5; }

/* Phone frame: a titanium-edged handset. Sizes inside follow the phone's own width (cqw). */
.phone {
  position: relative; container-type: inline-size;
  width: min(300px, 76vw); margin-inline: auto; padding: 2.9%;
  border-radius: 14.5% / 6.8%;
  background: linear-gradient(145deg, #5d6661 0%, #1c211e 18%, #0f1311 50%, #2a302c 82%, #6a736d 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .22),
    inset 0 0 0 4px #0b0e0c,
    0 1px 2px rgba(0, 0, 0, .5),
    0 18px 30px rgba(31, 43, 34, .18),
    0 44px 80px rgba(31, 43, 34, .26);
}
.phone .btn { position: absolute; right: -1.1%; width: 1.4%; background: linear-gradient(90deg, #2a302c, #59625c); border-radius: 0 3px 3px 0; }
.phone .btn-vol { top: 19%; height: 11%; }
.phone .btn-pow { top: 33%; height: 6.5%; }
.screen { position: relative; overflow: hidden; border-radius: 11.6% / 5.25%; background: var(--paper); aspect-ratio: 1080 / 2400; }
.screen img { width: 100%; height: auto; display: block; }
.screen::after {  /* a soft reflection across the glass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 22%, rgba(255, 255, 255, 0) 38%);
}
.statusbar {
  height: 12.6cqw; padding: 2cqw 7.5cqw 0; display: flex; align-items: center; justify-content: space-between;
  background: var(--paper); color: var(--ink); font-weight: 800; font-size: 4.4cqw; line-height: 1; position: relative;
}
.statusbar .cam { position: absolute; left: 50%; top: 55%; width: 4.6cqw; height: 4.6cqw; margin: -2.3cqw 0 0 -2.3cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a55 0 18%, #0b0e0c 45%); box-shadow: 0 0 0 .5cqw #141816; }
.sb-icons { display: flex; align-items: center; gap: 1.8cqw; }
.sb-icons svg { height: 4.4cqw; width: auto; fill: currentColor; }
.sb-icons svg:first-child { height: 4.8cqw; transform: rotate(45deg); }

.hero-phones { position: relative; width: min(300px, 76vw); margin-inline: auto; left: 5%; }
.hero-phones .phone { width: 100%; }
.hero-phone { transform: rotate(3deg); }
.hero-back { position: absolute; inset: 0 auto auto 0; transform: translate(-40%, 7%) rotate(-7deg) scale(.88); transform-origin: center; filter: saturate(.92) brightness(.98); }

/* Sections */
section { padding-block: clamp(48px, 8vw, 96px); }
.band { background: var(--paper-deep); }
.sub { color: var(--ink-soft); font-size: 1.15rem; margin-top: 10px; }

/* Group tiles */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.group { color: #FBFDF9; border-radius: var(--radius); padding: 26px 26px 28px; box-shadow: var(--shadow); }
.group .af { opacity: .85; font-weight: 600; }
.group .count { display: inline-block; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: .95rem; margin: 16px 0 14px; }
.g-tree { background: linear-gradient(135deg, var(--tree-hi), var(--tree-lo)); }
.g-grass { background: linear-gradient(135deg, var(--grass), var(--grass-lo)); }
.g-flower { background: linear-gradient(135deg, var(--flower), var(--flower-lo)); }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; margin-top: clamp(40px, 7vw, 80px); }
.feature.flip { grid-template-columns: 1fr minmax(0, 340px); }
.feature.flip .phone { order: 2; }
.feature .phone { width: min(290px, 74vw); }
.step { display: inline-block; background: var(--tree-soft); color: var(--tree-lo); font-weight: 800; border-radius: 999px; padding: 4px 14px; font-size: .95rem; margin-bottom: 14px; }
.feature-text h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.feature-text > p:not(.step):not(.funnel) { color: var(--ink-soft); margin-top: 14px; font-size: 1.12rem; max-width: 30em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 7vw, 80px); }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--tree-soft); fill: none; stroke: var(--tree); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.card p { color: var(--ink-soft); margin-top: 8px; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: var(--ink); font-weight: 700; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--tree-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.feature.wide { grid-template-columns: 1fr minmax(0, 520px); }
.duo { display: flex; align-items: center; justify-content: center; order: 2; }
.duo .phone { width: min(236px, 40vw); margin: 0; }
.duo .phone:last-child { margin-top: 12%; }
.duo-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tree); display: grid; place-items: center; margin-inline: -14px; z-index: 1; box-shadow: var(--shadow); }
.duo-arrow svg { width: 20px; height: 20px; fill: none; stroke: #FBFDF9; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.funnel { background: var(--tree-soft); color: var(--tree-lo); border-radius: 16px; padding: 12px 16px; font-weight: 700; font-size: 1rem; display: inline-block; margin-top: 18px; }
.funnel b { font-size: 1.25em; font-weight: 800; }

/* Status */
.status { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.status li { background: var(--card); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.status b { color: var(--tree); font-weight: 800; }
.note { margin-top: 26px; font-weight: 700; color: var(--ink-soft); }

/* Footer */
footer { padding-block: 44px 56px; }
.foot { display: grid; gap: 14px; }
.foot p { color: var(--ink-soft); max-width: 46em; font-size: .98rem; }
.foot .small { font-size: .9rem; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  nav a:not(:last-child) { display: none; }
  .hero-in, .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .phone, .duo { order: 0; }
  .feature.wide { grid-template-columns: 1fr; }
  .hero-phones { margin-top: 14px; left: 0; }
  .hero-phone { transform: none; }
  .hero-back { display: none; }
  .groups, .cards { grid-template-columns: 1fr; }
  .leaf-a { width: 240px; right: -110px; }
  .feature-text { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
