/* The public site for ifes.app.
 *
 * Two audiences: an airline deciding on a system (home page) and a passenger
 * or store reviewer reading support and privacy (one readable column).
 * No framework, no web fonts, no scripts, no trackers: the privacy policy
 * says the product collects almost nothing, and the site must not contradict
 * it. The strict CSP in _headers enforces that.
 */
:root {
  color-scheme: light dark;
  --ink:      #0B1739;
  --ink-soft: #4a5768;
  --line:     #e2e7ee;
  --ground:   #ffffff;
  --raised:   #f5f8fb;
  --accent:   #2563EB;
  --accent-2: #3B82F6;
  --accent-ink: #ffffff;
  --glow:     #93C5FD;
  --night:    #051a20;
  --radius:   18px;
  --shadow:   0 1px 2px rgba(13,20,32,.06), 0 8px 28px rgba(13,20,32,.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:      #e8eef5;
    --ink-soft: #9caab9;
    --line:     #1f2b38;
    --ground:   #0a0f16;
    --raised:   #111923;
    --accent:   #60A5FA;
    --accent-ink: #0B1739;
    --shadow:   0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 17px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img, svg { max-width: 100%; }

.wrap { max-width: 70ch; margin: 0 auto; padding: 0 22px 72px; }

/* ---- header: frosted, sticky ---- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
header.site .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mark { font-weight: 850; letter-spacing: -.03em; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.mark span { color: var(--accent-2); }
nav.site { margin-left: auto; display: flex; gap: 6px; font-size: .93rem; flex-wrap: wrap; }
nav.site a { color: var(--ink-soft); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
nav.site a:hover, nav.site a:focus-visible { color: var(--ink); background: var(--raised); }

/* ---- type ---- */
h1 { font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; margin: 40px 0 14px; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); letter-spacing: -.02em; margin: 48px 0 12px; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 26px 0 6px; letter-spacing: -.01em; }
.lead { font-size: 1.14rem; color: var(--ink-soft); margin: 0 0 30px; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
ul { padding-left: 1.15em; }
li { margin: 6px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 26px 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0 52px; margin: 0 0 22px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  display: grid; place-items: center; font-size: .9rem; font-weight: 800;
}
.steps b { display: block; }

.panel { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 26px 0; }
.panel :first-child { margin-top: 0; }
.panel :last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; color: var(--ink-soft); font-size: .9rem; }
footer.site .wrap { padding-top: 26px; padding-bottom: 40px; }
footer.site a { color: inherit; }

/* ======================= home page ======================= */
.home main.wrap, .home .hero .wrap, .home header.site .wrap, .home footer.site .wrap { max-width: 1120px; }
.home main.wrap { padding-bottom: 24px; }
section { scroll-margin-top: 72px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 6px 20px rgba(59,130,246,.28); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(59,130,246,.36); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }

/* hero */
.hero {
  position: relative; overflow: hidden; color: #eef4ff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(59,130,246,.35), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(37,99,235,.55), transparent 60%),
    linear-gradient(170deg, #050b1f 0%, #0B1739 55%, #16276a 100%);
}
.hero::before {           /* faint dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
          mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero .wrap { position: relative; display: grid; gap: 36px; grid-template-columns: 1.1fr .9fr; align-items: center;
              padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin: 0 0 18px; }
.hero h1 span {
  background: linear-gradient(90deg, #93C5FD, #60A5FA 50%, #DBEAFE); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: #c7d6f5; max-width: 56ch; }
.hero .btn.ghost { color: #eef4ff; border-color: rgba(255,255,255,.28); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #93C5FD;
  padding: 6px 12px; border-radius: 999px; background: rgba(147,197,253,.1); border: 1px solid rgba(147,197,253,.25);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ee08a; box-shadow: 0 0 0 4px rgba(62,224,138,.2); }
.hero-art { filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

.stats { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.stats li { margin: 0; padding: 14px 14px; border-radius: 14px; color: #b4c6ec; font-size: .86rem;
            background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.stats b { display: block; font-size: 1.45rem; color: #fff; letter-spacing: -.02em; line-height: 1.2; }

/* section heads */
.sec-head { max-width: 62ch; margin: 88px 0 28px; }
.sec-head .kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 0 0 12px; line-height: 1.12; }
.sec-head p { color: var(--ink-soft); margin: 0; font-size: 1.06rem; }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 10px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card h3 { margin: 14px 0 8px; font-size: 1.08rem; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent);
}
.ico svg { width: 24px; height: 24px; }

/* bento */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.bento .card:nth-child(1) { grid-column: span 4; }
.bento .card:nth-child(2) { grid-column: span 2; }
.bento .card:nth-child(3) { grid-column: span 2; }
.bento .card:nth-child(4) { grid-column: span 4; }
.card.feature {
  background: linear-gradient(150deg, #0B1739, #1d3a8a); color: #eef4ff; border-color: transparent;
}
.card.feature p { color: #c7d6f5; }
.card.feature .ico { background: rgba(147,197,253,.14); color: #93C5FD; }
.card .big { font-size: 2.6rem; font-weight: 850; letter-spacing: -.04em; line-height: 1; margin: 16px 0 4px; color: #93C5FD; }

/* ground management: two columns */
.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 0 0 0 38px; margin: 0 0 18px; color: var(--ink-soft); }
.ticks li b { color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.ticks li::after {
  content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.console {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--raised); box-shadow: var(--shadow); overflow: hidden;
}
.console .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.console .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.console dl { margin: 0; padding: 8px 18px 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .93rem; }
.console dt { color: var(--ink-soft); }
.console dd { margin: 0; font-weight: 600; }
.ok { color: #18a35b; } .ok::before { content: "● "; }

/* audience band */
.band {
  margin-top: 88px; border-radius: 28px; padding: 44px 36px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 12%, var(--raised)), var(--raised));
  border: 1px solid var(--line);
}
.band h2 { margin-top: 0; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.band p { color: var(--ink-soft); max-width: 64ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.pills li { margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }

/* faq */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin: 0 0 10px; background: var(--raised); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 0 0 16px; }

/* closing call */
.contact {
  margin-top: 88px; text-align: center; border-radius: 28px; padding: 56px 24px; color: #eef4ff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, rgba(59,130,246,.4), transparent 70%), linear-gradient(160deg, #050b1f, #16276a);
}
.contact h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.contact p { color: #c7d6f5; }
.contact .cta { justify-content: center; }

/* responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-art { max-width: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .card:nth-child(n) { grid-column: auto; }
}
@media (max-width: 560px) {
  nav.site { margin-left: -12px; width: calc(100% + 12px); }
  .band { padding: 30px 20px; }
  .sec-head { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
  .card, .btn { transition: none; }
}

/* brand: official Telvory Live logo + product tag */
.mark { display: inline-flex; align-items: center; gap: 10px; }
.mark img { height: 40px; width: auto; display: block; margin: -4px 0; }
.mark .product {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: #fff; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
}
.flogo { height: 40px; width: auto; display: block; margin: 0 0 6px -6px; }
@media (prefers-color-scheme: dark) { .flogo { filter: brightness(0) invert(1) opacity(.85); } }
