/* Airfront landing page – Akwarela (watercolour herbarium). Light theme.
 * Fonts: Karla (text, headings), Newsreader (the big "Airfront", numbers, Latin names in italics).
 * Desktop matches the Figma 1440 frame (content 1200), mobile the 390 frame.
 */

:root {
  --paper: #F6F8F5;
  --raised: #FFFFFF;
  --land: #EAEDE4;
  --ink: #243126;
  --sec: #4F5E52;
  --line: #C9D3C8;
  --primary: #3F6B4A;
  --trees: #6F9E7A;
  --grass: #D9A441;
  --weeds: #9C7BB5;
  --sky: #C4DCEB;
  --symptom: #C27F70;
  --alert: #A3412D;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --shadow: 0 24px 48px -8px rgba(36, 49, 38, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 28px/1.1 var(--serif); }
.brand img { width: 40px; height: 40px; }
.links { display: flex; gap: 36px; }
.links a { color: var(--sec); font-size: 16px; text-decoration: none; }
.pill { border: 1px solid var(--ink); border-radius: 999px; padding: 11px 20px; font: 700 15px/1.2 var(--sans); white-space: nowrap; }

/* Type */
.label { font: 700 14px/1.3 var(--sans); color: var(--primary); margin-bottom: 16px; }
h2 { font: 700 46px/1.12 var(--sans); letter-spacing: -0.02em; margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--sec); }
.source { font-size: 13px; line-height: 1.4; color: var(--sec); margin-top: 20px; }
.points { list-style: none; margin-top: 24px; }
.points li { border-top: 1px solid var(--line); padding: 16px 0; }
.points b { display: block; font: 700 18px/1.3 var(--sans); margin-bottom: 4px; }
.points span { color: var(--sec); font-size: 16px; }

/* Sections */
.sec { padding: 120px 0; border-top: 1px solid var(--line); }
.raised { background: var(--raised); }

/* Watercolour washes: a white-alpha wash image as a mask, coloured with a token. */
.wash { position: absolute; aspect-ratio: 1; background: var(--c, var(--sky)); opacity: var(--af-opacity, .3);
  -webkit-mask: url(img/washes/soft1.webp) center / contain no-repeat; mask: url(img/washes/soft1.webp) center / contain no-repeat; }
.dot { display: inline-block; flex: none; width: 16px; height: 16px; background: var(--c, var(--trees));
  -webkit-mask: url(img/washes/dot1.webp) center / contain no-repeat; mask: url(img/washes/dot1.webp) center / contain no-repeat; }
.m-soft1 { -webkit-mask-image: url(img/washes/soft1.webp); mask-image: url(img/washes/soft1.webp); }
.m-soft2 { -webkit-mask-image: url(img/washes/soft2.webp); mask-image: url(img/washes/soft2.webp); }
.m-soft3 { -webkit-mask-image: url(img/washes/soft3.webp); mask-image: url(img/washes/soft3.webp); }
.m-soft4 { -webkit-mask-image: url(img/washes/soft4.webp); mask-image: url(img/washes/soft4.webp); }
.m-soft5 { -webkit-mask-image: url(img/washes/soft5.webp); mask-image: url(img/washes/soft5.webp); }
.m-soft6 { -webkit-mask-image: url(img/washes/soft6.webp); mask-image: url(img/washes/soft6.webp); }
.m-soft7 { -webkit-mask-image: url(img/washes/soft7.webp); mask-image: url(img/washes/soft7.webp); }
.m-soft8 { -webkit-mask-image: url(img/washes/soft8.webp); mask-image: url(img/washes/soft8.webp); }
.m-soft9 { -webkit-mask-image: url(img/washes/soft9.webp); mask-image: url(img/washes/soft9.webp); }
.m-dot1 { -webkit-mask-image: url(img/washes/dot1.webp); mask-image: url(img/washes/dot1.webp); }
.m-dot2 { -webkit-mask-image: url(img/washes/dot2.webp); mask-image: url(img/washes/dot2.webp); }
.m-dot3 { -webkit-mask-image: url(img/washes/dot3.webp); mask-image: url(img/washes/dot3.webp); }
.m-dot4 { -webkit-mask-image: url(img/washes/dot4.webp); mask-image: url(img/washes/dot4.webp); }
.m-dot5 { -webkit-mask-image: url(img/washes/dot5.webp); mask-image: url(img/washes/dot5.webp); }
.m-dot6 { -webkit-mask-image: url(img/washes/dot6.webp); mask-image: url(img/washes/dot6.webp); }

/* Phone frame: a thin ink bezel with an island, like the Quietfront store screenshots.
 * Figma "Landing / Phone": 300×628, radius 44, bezel 5, screen 290×618 with radius 40, island 83×24 at top 14.
 * All sizes are percentages of the phone itself, so the bezel stays thin at every size. */
.stage { position: relative; }
.stage > * { position: absolute; }
.phone { aspect-ratio: 300 / 628; background: var(--ink); border-radius: 14.67% / 7%; box-shadow: var(--shadow); }
.phone img { position: absolute; left: 1.667%; top: .796%; width: 96.667%; height: 98.408%; object-fit: cover; border-radius: 13.8% / 6.47%; }
.phone::after { content: ""; position: absolute; left: 50%; top: 2.23%; width: 27.67%; height: 3.82%; transform: translateX(-50%); background: #000; border-radius: 999px; }
.art-img { height: auto; }

/* Hero band: full-width strip that holds the wind layer behind the hero content. */
.hero-band { position: relative; overflow: hidden; overflow: clip; }
.hero-band > .wrap { position: relative; z-index: 1; }

/* Wind (decoration, shown and animated by motion.css / motion.js only when motion is on).
 * Gusts: a wide sky wash with a thin leaf-green line on top. Grains: pollen dots in the plant colours. */
.af-wind { display: none; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.af-wind svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.af-wind path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.af-wind .g-bleed { stroke: var(--sky); stroke-width: 30; opacity: .16; filter: blur(8px); }
.af-wind .g-wash { stroke: var(--sky); stroke-width: 7; opacity: .38; filter: blur(2px); }
.af-wind .grain, .af-wind .leaf { position: absolute; left: 0; width: var(--gs); }
.af-wind .grain { height: var(--gs); }
.af-wind i { display: block; }
.af-wind .grain i { width: 100%; height: 100%; background: var(--c); opacity: .5;
  -webkit-mask: url(img/washes/dot1.webp) center / contain no-repeat; mask: url(img/washes/dot1.webp) center / contain no-repeat; }
.af-wind .leaf img { width: 100%; height: auto; opacity: .55; }

/* Hero */
.hero { display: grid; grid-template-columns: 540px 1fr; gap: 40px; align-items: center; padding: 56px 0 96px; }
.kicker { font: 700 14px/1.3 var(--sans); color: var(--sec); }
h1 { font: 500 136px/1 var(--serif); letter-spacing: -0.01em; margin: 12px 0 20px; }
.sub { font: 700 30px/1.2 var(--sans); letter-spacing: -0.01em; margin-bottom: 16px; }
.hero .lead { font-size: 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.badge { display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 14px; padding: 9px 22px 10px 16px; }
.badge > span { display: flex; flex-direction: column; }
.badge-ic { flex: none; width: 26px; height: 26px; }
.badge small { font-size: 12px; line-height: 16px; opacity: .8; }
.badge b { font: 700 19px/22px var(--sans); }
.note { font-size: 15px; color: var(--sec); margin-top: 16px; }
.hero-art { aspect-ratio: 640 / 700; width: 100%; max-width: 640px; justify-self: end; }

/* Two-column sections with art (pollen, family) */
.split { display: grid; grid-template-columns: 620px 1fr; column-gap: 72px; grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: "art ." "art head" "art pts" "art ."; }
.split.flip { grid-template-columns: 1fr 620px; grid-template-areas: ". art" "head art" "pts art" ". art"; }
.split .art { grid-area: art; aspect-ratio: 620 / 720; }
.split .head { grid-area: head; }
.split .pts { grid-area: pts; }

/* Diary and insights */
.diary-head { display: grid; grid-template-columns: 640px 1fr; gap: 64px; align-items: end; margin-bottom: 72px; }
.result { border-left: 1px solid var(--line); padding: 4px 0 4px 36px; }
.result .big, .big { font: 400 96px/1 var(--serif); letter-spacing: -0.01em; margin-bottom: 6px; }
.result p { font-size: 18px; line-height: 1.4; }
.result small { display: block; font-size: 13px; color: var(--sec); margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step .stage { aspect-ratio: 376 / 600; margin-bottom: 14px; }
.step h3 { font: 700 20px/1.25 var(--sans); display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.num { font: 400 26px/1.1 var(--serif); color: var(--primary); }
.step p, .card p { color: var(--sec); font-size: 16px; }

/* Asthma cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.card .stage { aspect-ratio: 282 / 530; margin-bottom: 12px; }
.card h3 { font: 700 20px/1.25 var(--sans); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pro { font: 700 11px/1 var(--sans); color: var(--primary); border: 1px solid var(--primary); border-radius: 6px; padding: 4px 6px; letter-spacing: .04em; }
.doctor { display: flex; gap: 10px; align-items: baseline; margin-top: 48px; color: var(--sec); font-size: 15px; }
.doctor::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--alert); transform: translateY(-1px); }

/* Privacy */
.privacy { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: start; }
.privacy ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.privacy .dot { width: 44px; height: 44px; margin-bottom: 10px; }
.privacy b { display: block; font: 700 20px/1.25 var(--sans); margin-bottom: 6px; }
.privacy span { color: var(--sec); font-size: 16px; }

/* Blog teaser */
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.blog-head > div { max-width: 700px; }
.more { font: 700 17px/1.3 var(--sans); color: var(--primary); text-decoration: none; white-space: nowrap; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.post .pic { position: relative; height: 220px; background: rgba(234, 237, 228, .6); overflow: hidden; }
.post .pic .wash { width: 242px; left: calc(50% - 121px); top: calc(50% - 121px); }
.post .pic img { position: absolute; width: 172px; height: 172px; object-fit: contain; left: calc(50% - 86px); top: calc(50% - 86px); }
.post .txt { padding: 22px 24px 26px; }
.post .cat { font: 700 14px/1.3 var(--sans); color: var(--primary); margin-bottom: 8px; }
.post h3 { font: 700 22px/1.25 var(--sans); letter-spacing: -0.01em; margin-bottom: 8px; }
.post p { color: var(--sec); font-size: 16px; }
.post small { display: block; color: var(--sec); font-size: 13px; margin-top: 8px; }

/* Coming soon */
.cta { text-align: center; padding: 112px 0; border-top: 1px solid var(--line); }
.plates { display: flex; justify-content: center; align-items: flex-end; gap: 64px; margin-bottom: 40px; }
.plates figure img { width: 180px; height: 186px; object-fit: contain; }
.plates figcaption { text-align: left; margin-top: 8px; font: 400 16px/1.2 var(--sans); color: var(--sec); }
.plates figcaption i { font-family: var(--serif); }
.cta .badges { justify-content: center; margin-top: 24px; }
.cta .lead { margin-top: 8px; }

/* Footer */
.foot { background: var(--land); border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 13px; line-height: 1.4; color: var(--sec); }
.foot .cols { display: grid; grid-template-columns: 300px 320px 340px 1fr; gap: 48px; }
.foot .brand { font-size: 24px; color: var(--ink); margin-bottom: 8px; }
.foot .brand img { width: 32px; height: 32px; }
.foot h4 { font: 700 14px/1.3 var(--sans); color: var(--ink); margin-bottom: 6px; }
.foot nav { display: flex; flex-direction: column; gap: 6px; font-size: 15px; justify-self: end; }
.foot nav a, .langs a { text-decoration: none; }
.langs { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.langs [aria-current] { color: var(--ink); font-weight: 700; }

/* Tablet and mobile (Figma 390 frame) */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 104px; }
  .split, .split.flip { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .diary-head { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .privacy { grid-template-columns: 1fr; gap: 32px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot nav { justify-self: start; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 48px); }
  .nav .wrap { padding: 14px 0; }
  .links { display: none; }
  .brand { font-size: 22px; } .brand img { width: 30px; height: 30px; }
  .pill { font-size: 13px; padding: 8px 14px; }
  .sec { padding: 56px 0; }
  h2 { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
  .label { margin-bottom: 12px; }
  .lead, .hero .lead { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding: 36px 0 56px; gap: 28px; }
  h1 { font-size: 76px; line-height: 1.05; margin: 8px 0 10px; }
  .sub { font-size: 22px; line-height: 1.25; margin-bottom: 12px; }
  .badges { margin-top: 24px; gap: 10px; }
  .badges { gap: 8px; }
  .badge { gap: 8px; padding: 8px 12px 9px 11px; }
  .badge-ic { width: 22px; height: 22px; }
  .badge b { font-size: 18px; }
  .hero-art { justify-self: stretch; max-width: none; }
  .af-wind svg { right: auto; bottom: auto; top: 24px; left: -70%; width: 240%; height: auto; aspect-ratio: 1440 / 760; }
  .af-wind .more { display: none; }
  .split, .split.flip { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "head" "art" "pts"; }
  .split .art { margin: 20px 0 8px; }
  .diary-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
  .result { border-left: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); padding: 20px; }
  .result .big, .big { font-size: 64px; }
  .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -24px; padding: 0 24px 8px; }
  .step { flex: 0 0 78%; scroll-snap-align: start; }
  .cards { gap: 16px; margin-top: 24px; }
  .card h3 { font-size: 17px; }
  .card p { font-size: 13px; line-height: 1.4; }
  .privacy ul { grid-template-columns: 1fr; gap: 20px; }
  .privacy li { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; }
  .privacy .dot { width: 32px; height: 32px; grid-row: span 2; }
  .privacy b { font-size: 17px; margin: 0; }
  .blog-head { display: block; margin-bottom: 20px; }
  .blog-head .more { display: none; }
  .posts { grid-template-columns: 1fr; gap: 16px; }
  .post .pic { height: 180px; }
  .more-mobile { display: inline-block !important; margin-top: 20px; }
  .cta { padding: 56px 0; }
  .plates { gap: 16px; }
  .plates figure img { width: 100px; height: 104px; }
  .plates figcaption { font-size: 14px; }
  .foot .cols { grid-template-columns: 1fr; gap: 20px; }
}
.more-mobile { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
