/* TAS website: "Happy Skies" brand. Same tokens as the app (constants/theme.ts). */
@font-face { font-family: Nunito; src: url(fonts/Nunito_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/Nunito_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/Nunito_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: Nunito; src: url(fonts/Nunito_900Black.ttf) format('truetype'); font-weight: 900; font-display: swap; }

:root {
  /* Calm Skies: trust-blue, reassuring teal, gentle honey, sunset (never red), lavender, peach */
  --sky: #6CCDF2; --sky2: #C4EDFB; --deep: #2B7BBF; --ink: #1F3B57; --text: #2E4A66; --muted: #627A92;
  --sun: #FFD978; --sun2: #E9B44C; --coral: #FFAD80; --mint: #3BB896; --lilac: #8F84DA; --night: #3A3477;
  --cloud: #F3F9FD; --card: #FFFFFF; --line: #E2EEF7; --sunset: #E07B39;
  --radius: 24px; --shadow: 0 14px 40px rgba(43, 123, 191, .12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cloud); color: var(--text); font: 17px/1.6 Nunito, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--deep); }
:focus-visible { outline: 3px solid var(--sun2); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding-inline: 20px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(242, 250, 255, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.brand img { width: 36px; height: 36px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--text); font-weight: 700; font-size: 15px; }
.top nav a:hover { color: var(--deep); }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 8px 22px rgba(233, 180, 76, .3); }
.btn-ghost { background: rgba(255, 255, 255, .75); color: var(--ink); border-color: rgba(13, 43, 87, .15); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .7; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, var(--sky2) 70%, var(--cloud) 100%); padding-block: 64px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.kicker { display: inline-block; background: rgba(255, 255, 255, .7); color: var(--deep); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; padding: 6px 14px; border-radius: 999px; }
h1, h2, h3 { color: var(--ink); line-height: 1.05; margin: 0; }
h1 { font-weight: 900; font-size: clamp(40px, 7vw, 76px); letter-spacing: -1px; margin-block: 18px 16px; }
h2 { font-weight: 900; font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.5px; }
h3 { font-weight: 800; font-size: 20px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink); max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 26px 14px; }
.fine { font-size: 14px; color: var(--ink); opacity: .75; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; border-radius: 38px; padding: 10px; background: #0D2B57; box-shadow: 0 30px 60px rgba(13, 43, 87, .35); }
.phone img { border-radius: 30px; width: 100%; height: auto; }
.phones .p1 { right: 120px; top: 0; transform: rotate(-4deg); z-index: 2; }
.phones .p2 { right: 0; top: 70px; transform: rotate(6deg); }
.sun { position: absolute; right: 7%; top: 30px; width: 110px; height: 110px; border-radius: 50%; background: #FFDE85; box-shadow: 0 0 0 14px rgba(255, 222, 133, .3), 0 0 0 30px rgba(255, 222, 133, .15); }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .9; animation: drift 60s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 55%; height: 160%; left: 15%; top: -70%; }
.cloud::after { width: 40%; height: 130%; right: 12%; top: -45%; }
.c1 { width: 180px; height: 46px; top: 90px; left: -200px; }
.c2 { width: 120px; height: 32px; top: 220px; left: -160px; animation-duration: 80s; animation-delay: -30s; opacity: .7; }
.c3 { width: 220px; height: 54px; top: 420px; left: -240px; animation-duration: 95s; animation-delay: -60s; opacity: .8; }
.plane { position: absolute; top: 150px; left: -60px; width: 46px; animation: fly 26s linear infinite; }
@keyframes drift { to { transform: translateX(calc(100vw + 300px)); } }
@keyframes fly { 0% { transform: translate(0, 0) rotate(-6deg); } 100% { transform: translate(calc(100vw + 120px), -80px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .cloud, .plane { animation: none; } .btn { transition: none; } html { scroll-behavior: auto; } }

/* airfield strip */
.strip { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; padding-block: 12px; font-weight: 800; letter-spacing: 3px; font-size: 14px; }
.strip span { display: inline-block; padding-inline: 18px; opacity: .9; }
.strip .track { display: inline-block; animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip .track { animation: none; } }

/* features */
section { padding-block: 84px; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .text { order: 2; }
.tag { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: 1.5px; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.feature p { font-size: 18px; max-width: 520px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.pills li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; color: var(--ink); }
.shot { justify-self: center; position: relative; }
.shot .phone { position: relative; width: 290px; }
.blob { position: absolute; inset: 8% -12% -6% -12%; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; z-index: -1; }
.t-sky { background: #E2F4FC; color: var(--deep); } .b-sky { background: linear-gradient(135deg, #CDEEFB, #EEF9FE); }
.t-coral { background: #FFEADB; color: #9A5A2E; } .b-coral { background: linear-gradient(135deg, #FFE0CC, #FFF6EE); }
.t-mint { background: #DBF6EC; color: #137A57; } .b-mint { background: linear-gradient(135deg, #BFF0DD, #ECFBF5); }
.t-sun { background: #FFF2C4; color: #8A5A00; } .b-sun { background: linear-gradient(135deg, #FFE48A, #FFF7D9); }
.t-lilac { background: #ECE8FF; color: #4B3BBF; } .b-lilac { background: linear-gradient(135deg, #D9D2FF, #F4F1FF); }

/* night band (simulator) */
.night { background: radial-gradient(1200px 400px at 70% 0%, #9D93E0 0%, transparent 70%), linear-gradient(180deg, #4C4596, var(--night)); color: #EDE7FF; position: relative; overflow: hidden; }
.night h2 { color: #fff; } .night p { color: #EDE7FF; }
.night .tag { background: rgba(255, 255, 255, .14); color: #fff; }
.night .pills li { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }
.stars { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 10% 20%, #FFF59D 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 70%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 80% 30%, #FFF59D 50%, transparent 51%), radial-gradient(1.5px 1.5px at 60% 85%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 75%, #fff 50%, transparent 51%); pointer-events: none; }
.moon { position: absolute; right: 8%; top: 50px; width: 70px; height: 70px; border-radius: 50%; box-shadow: -16px 6px 0 0 #FFE082; }

/* card grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 6px solid var(--sky); }
.card p { margin: 8px 0 0; font-size: 16px; }
.card:nth-child(2) { border-color: var(--coral); } .card:nth-child(3) { border-color: var(--mint); }
.card:nth-child(4) { border-color: var(--sun2); } .card:nth-child(5) { border-color: var(--lilac); } .card:nth-child(6) { border-color: var(--deep); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* schools */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.step { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 900; display: grid; place-items: center; }

/* safety band */
.safety { background: var(--ink); color: #DCEBF7; padding-block: 56px; }
.safety h2 { color: #fff; } .safety .wrap { border-left: 6px solid var(--sun); padding-left: 26px; }

/* final CTA */
.final { background: linear-gradient(180deg, var(--cloud), var(--sky2) 60%, var(--sky)); }

/* footer */
footer { background: #1A3350; color: #B9CCE0; padding-block: 40px; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer a { color: #fff; text-decoration: none; } footer a:hover { text-decoration: underline; }
footer ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
footer .brand { color: #fff; }
footer small { display: block; grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; line-height: 1.5; }

/* legal pages */
.doc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 48px); margin-block: 32px 60px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin-top: 0; }
.doc h2 { font-size: 21px; margin-top: 28px; }
.doc p { text-align: justify; }
.doc .caps { font-weight: 700; }
.summary { background: var(--cloud); border-left: 6px solid var(--sky); border-radius: 14px; padding: 14px 20px; }
.legal-hero { background: linear-gradient(180deg, var(--sky), var(--sky2)); padding-block: 30px 10px; }

/* responsive */
@media (max-width: 900px) {
  .hero .wrap, .feature .wrap { grid-template-columns: 1fr; }
  .feature.flip .text { order: 0; }
  .phones { height: 470px; } .phones .p1 { right: 50%; margin-right: -40px; } .phones .p2 { right: 50%; margin-right: -220px; }
  .phone { width: 210px; } .shot .phone { width: 250px; }
  .grid, .steps { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  section { padding-block: 60px; }
}
@media (max-width: 480px) { .phones .p2 { display: none; } .phones .p1 { right: 50%; margin-right: -105px; } .phones { height: 450px; } }
@media (max-width: 600px) {
  .doc p { text-align: left; }
  .sun { width: 64px; height: 64px; right: 16px; top: 18px; }
}
