/* 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; }
/* Hebrew in Fredoka, as round and friendly as Nunito (which has no Hebrew letters); a 9 KB variable font, Hebrew only, so English pages never load it */
@font-face { font-family: Fredoka; src: url(fonts/Fredoka-Hebrew.woff2) format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

: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: #5B9BD5; --night: #0E2A4D;
  --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, Fredoka, 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: 44px; height: 44px; }
.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: -80px; width: 70px; fill: #fff; stroke: #fff; 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; }
.shot .phone.land { width: min(560px, calc(100vw - 48px)); border-radius: 30px; }
.shot .phone.land img { border-radius: 22px; }
.night .shot { justify-self: stretch; display: flex; justify-content: center; }
.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: #E3F1FC; color: #1F5F99; } .b-lilac { background: linear-gradient(135deg, #CFE8FA, #F1F8FE); }

/* night band (simulator) */
.night { background: radial-gradient(1200px 400px at 70% 0%, #2F6FAE 0%, transparent 70%), linear-gradient(180deg, #17406E, var(--night)); color: #E6F2FC; position: relative; overflow: hidden; }
.night h2 { color: #fff; } .night p { color: #E6F2FC; }
.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; }
}

/* the TAS logo (docs/brand/newtaslogo.jpg) */
.brand img { object-fit: contain; }
.hero-logo { display: block; width: 170px; height: 170px; margin: -10px 0 8px -12px; filter: drop-shadow(0 10px 18px rgba(13, 43, 87, .25)); }
@media (max-width: 480px) { .hero-logo { width: 120px; height: 120px; } }

/* page-wide sky below the hero: a few clouds drifting and three planes crossing left to right, behind the content */
main { position: relative; }
.sky-bg { position: absolute; top: 760px; left: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; z-index: 0; }
main > section .wrap, main > .strip { position: relative; z-index: 1; }
.sky-bg .cloud { background: #D9EEFB; opacity: .9; }
.sky-bg .cloud::before, .sky-bg .cloud::after { background: #D9EEFB; }
.bc1 { width: 202px; height: 50px; top: 3.3%; left: -242px; animation-duration: 105s; animation-delay: -83s; }
.bc2 { width: 132px; height: 33px; top: 6.8%; left: -172px; animation-duration: 114s; animation-delay: -12s; }
.bc3 { width: 213px; height: 53px; top: 14.4%; left: -253px; animation-duration: 112s; animation-delay: -27s; }
.bc4 { width: 129px; height: 32px; top: 19.1%; left: -169px; animation-duration: 106s; animation-delay: -8s; }
.bc5 { width: 181px; height: 45px; top: 25.2%; left: -221px; animation-duration: 107s; animation-delay: -7s; }
.bc6 { width: 151px; height: 37px; top: 33.8%; left: -191px; animation-duration: 120s; animation-delay: -80s; }
.bc7 { width: 135px; height: 33px; top: 38.8%; left: -175px; animation-duration: 105s; animation-delay: -6s; }
.bc8 { width: 176px; height: 44px; top: 43.3%; left: -216px; animation-duration: 88s; animation-delay: -37s; }
.bc9 { width: 227px; height: 56px; top: 49.7%; left: -267px; animation-duration: 87s; animation-delay: -73s; }
.bc10 { width: 198px; height: 49px; top: 57.1%; left: -238px; animation-duration: 123s; animation-delay: -23s; }
.bc11 { width: 146px; height: 36px; top: 63.2%; left: -186px; animation-duration: 120s; animation-delay: -24s; }
.bc12 { width: 215px; height: 53px; top: 67.9%; left: -255px; animation-duration: 125s; animation-delay: -8s; }
.bc13 { width: 135px; height: 33px; top: 75.6%; left: -175px; animation-duration: 111s; animation-delay: -87s; }
.bc14 { width: 229px; height: 57px; top: 82.1%; left: -269px; animation-duration: 109s; animation-delay: -74s; }
.bc15 { width: 236px; height: 59px; top: 87.0%; left: -276px; animation-duration: 95s; animation-delay: -101s; }
.bc16 { width: 166px; height: 41px; top: 94.1%; left: -206px; animation-duration: 95s; animation-delay: -10s; }
.bg-plane { position: absolute; left: -110px; width: 90px; fill: #4F9FD6; stroke: #4F9FD6; opacity: .7; animation: fly 40s linear infinite; }
.bp1 { top: 3.0%; width: 89px; animation-duration: 50s; animation-delay: -31s; }
.bp2 { top: 12.6%; width: 91px; animation-duration: 57s; animation-delay: -28s; }
.bp3 { top: 22.2%; width: 88px; animation-duration: 53s; animation-delay: -4s; }
.bp4 { top: 31.8%; width: 77px; animation-duration: 50s; animation-delay: -26s; }
.bp5 { top: 41.4%; width: 80px; animation-duration: 58s; animation-delay: -21s; }
.bp6 { top: 51.0%; width: 79px; animation-duration: 49s; animation-delay: -26s; }
.bp7 { top: 60.6%; width: 72px; animation-duration: 55s; animation-delay: -4s; }
.bp8 { top: 70.2%; width: 105px; animation-duration: 52s; animation-delay: -50s; }
.bp9 { top: 79.8%; width: 90px; animation-duration: 44s; animation-delay: -44s; }
.bp10 { top: 89.4%; width: 92px; animation-duration: 53s; animation-delay: -31s; }
@media (max-width: 760px) { .sky-bg { top: 1100px; } .bg-plane { width: 56px; } }
@media (prefers-reduced-motion: reduce) { .bg-plane { animation: none; display: none; } }

/* readability: the text sits on a soft panel, so a cloud or plane drifting behind it never covers a word */
.feature .text { position: relative; z-index: 2; background: rgba(244, 250, 255, .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-radius: 28px; padding: 30px; box-shadow: 0 10px 30px rgba(13, 43, 87, .06); }
.grid .card, .steps .step { position: relative; z-index: 2; }
.bg-plane { opacity: .38; }
.sky-bg .cloud { opacity: .55; }

/* two phones side by side: a screen and the next one down */
.shot.duo { display: flex; gap: 22px; align-items: flex-start; }
.shot.duo .phone { width: 250px; }
.shot.duo .phone + .phone { margin-top: 70px; }
.caption { display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--deep); margin-top: 10px; }
.new { display: inline-block; background: #FFD54F; color: #4A3500; font-size: 11px; font-weight: 800; letter-spacing: 1px; border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 900px) {
  .feature .text { padding: 22px; }
  .shot.duo { gap: 12px; justify-self: stretch; justify-content: center; }
  .shot.duo .phone { width: min(44vw, 230px); padding: 7px; border-radius: 30px; }
  .shot.duo .phone img { border-radius: 24px; }
  .shot.duo .phone + .phone { margin-top: 44px; }
}

/* TAS in numbers, under the airfield strip */
.stats { padding-block: 34px 6px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 2; }
.stats-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 14px; text-align: center; box-shadow: 0 10px 24px rgba(13, 43, 87, .06); }
.stats-grid b { display: block; font-size: 38px; font-weight: 900; color: var(--deep); line-height: 1.1; }
.stats-grid span { display: block; font-size: 14px; font-weight: 700; color: var(--muted, #5E7A93); margin-top: 4px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stats-grid b { font-size: 30px; } }

/* nothing decorative (blobs, clouds) may widen the page on a phone */
main { overflow-x: clip; }
/* Hebrew (the homepage's English / עברית switch): each text right to left, in the Hebrew font */
[lang="he"] body { font-family: Fredoka, Nunito, system-ui, sans-serif; }

/* plans: the price large, what it includes as a short list */
.plans .plan { text-align: start; display: flex; flex-direction: column; }
.plans .plan h3 { margin: 0; }
.plans .amount { font-size: 44px; font-weight: 800; margin: 10px 0 0; color: var(--deep); line-height: 1; }
.plans .per { margin: 4px 0 10px; font-size: 14px; opacity: .75; }
.plans ul { margin: 6px 0 0; padding-inline-start: 20px; line-height: 1.7; }
.plans .best { border-color: var(--deep); box-shadow: 0 0 0 3px var(--deep), var(--shadow); }
/* in Hebrew the plans read from the right: the free trial first */
html[lang="he"] .plans { direction: rtl; }
.plans .badge { align-self: flex-start; background: var(--deep); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.plans .plus { margin: 4px 0 0; }
