/* vecihi.com: the only stylesheet. No framework, no web fonts, no scripts.
   Light and dark follow the visitor's system setting. Every page links this file. */

:root {
  color-scheme: light dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Brand: the purple-to-blue gradient of the logo */
  --brand-1: #764ba2;
  --brand-2: #667eea;
  --grad: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  /* Darker end for gradients that carry white text (at least 5.5:1 everywhere) */
  --grad-strong: linear-gradient(135deg, var(--brand-1) 0%, #4f5bd5 100%);
  --night: #0a0d1c;
  --time: #ef7d12;

  --bg: #ffffff;
  --bg-soft: #f4f5fa;
  --surface: #ffffff;
  --ink: #0e1222;
  --ink-2: #4a5068;
  --ink-3: #6b7189;
  --line: #e2e4ee;
  --grid: rgba(14, 18, 34, .055);
  --link: #4f46c8;
  --accent: #5a4fcf;
  --ok: #12825a;
  --amber: #a45f00;
  --shadow: 0 1px 2px rgba(14, 18, 34, .05), 0 10px 30px rgba(14, 18, 34, .07);
  --radius: 20px;
  --header-bg: rgba(255, 255, 255, .8);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e1b;
    --bg-soft: #10142a;
    --surface: #151a32;
    --ink: #eef0f9;
    --ink-2: #aab0c9;
    --ink-3: #8a90ab;
    --line: #262c49;
    --grid: rgba(255, 255, 255, .05);
    --link: #a9b1ff;
    --accent: #a9b1ff;
    --ok: #3fd29c;
    --amber: #ffb547;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 36px rgba(0, 0, 0, .35);
    --header-bg: rgba(11, 14, 27, .8);
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding keeps anchors and focused elements clear of the sticky 64px header */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
/* Links inside running text are underlined, not told apart by colour alone */
p a:not(.btn), .prose a { text-decoration: underline; text-underline-offset: .18em; }
a:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 2.85rem); }
h3 { font-size: 1.35rem; letter-spacing: -.012em; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
@media (min-width: 600px) { .wrap { width: min(1120px, 100% - 64px); } }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font: 600 .76rem/1.3 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lead { max-width: 38em; color: var(--ink-2); font-size: clamp(1.1rem, 1.9vw, 1.28rem); line-height: 1.55; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; padding: .6rem 1rem; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
  }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  font: 700 1.4rem/1 var(--font-display);
  letter-spacing: -.035em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }

.nav { display: flex; gap: .15rem; }
.nav a {
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .98rem;
  font-weight: 500;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 420px) {
  .brand { font-size: 1.25rem; }
  .brand img { width: 28px; height: 28px; }
  .nav a { padding: .45rem .6rem; font-size: .94rem; }
}

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad-strong); color: #fff; box-shadow: 0 8px 22px rgba(102, 126, 234, .35); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-light { background: #fff; color: #3a2d7d; }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }

/* Home: hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: #e9ecfb;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 75% at 88% 18%, rgba(118, 75, 162, .62), transparent 62%),
    radial-gradient(48% 70% at 6% 96%, rgba(102, 126, 234, .38), transparent 62%);
}
/* Faint chart grid, fading out towards the edges */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 65% 45%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 75% at 65% 45%, #000 30%, transparent 78%);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
}
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #aeb7ff; }
.hero .lead { color: #c3c8e6; }

/* Flight route chart beside the hero text */
.route { width: 100%; max-width: 540px; margin-inline: auto; color: #fff; }
.route text { font-family: var(--mono); letter-spacing: .08em; }
.route .leg-flown { stroke: #c7cdff; }
.route .leg-next { stroke: rgba(199, 205, 255, .55); }
.route .label { fill: #fff; font-weight: 700; }
.route .sub { fill: #9aa3d6; }
.route .soon { fill: #ffc56b; }
.route .tick { fill: #7d86bd; }
.route .plane { fill: #fff; }
.route .plane-still { display: none; }
/* On phones the chart is drawn at about 0.65x; keep its labels readable */
@media (max-width: 560px) {
  .route .sub, .route .soon, .route .tick { font-size: 15px; }
  .route .label { font-size: 19px; }
}

/* Sections */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head .lead { margin-bottom: 0; }

/* Home: apps as boarding passes */

.passes { display: grid; gap: 1.75rem; }
.pass {
  --notch-bg: var(--bg);
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
@media (min-width: 800px) { .pass { grid-template-columns: 1fr 320px; } }

.pass-main { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; align-items: flex-start; padding: clamp(1.5rem, 4vw, 2.5rem); }
.pass-main > div { flex: 1 1 260px; }
.pass-main h3 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin-bottom: .45rem; }
.pass-main h3 a { color: inherit; }
.pass-main p { color: var(--ink-2); }
.pass-main .more { font-weight: 600; }

.app-icon { flex: none; width: 92px; height: 92px; border-radius: 22.5%; box-shadow: 0 6px 18px rgba(10, 13, 28, .2); }
.app-icon-tile { display: grid; place-items: center; background: #f4f0e8; }
.app-icon-tile img { width: 64%; height: auto; }

.pass-stub {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1.1rem;
  margin: 0;
  padding: 1.6rem clamp(1.5rem, 4vw, 2.25rem) 1.9rem;
  border-top: 2px dashed var(--line);
}
@media (min-width: 800px) { .pass-stub { border-top: 0; border-left: 2px dashed var(--line); } }
/* Half-circle bites at both ends of the perforation */
.pass-stub::before, .pass-stub::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--notch-bg);
}
.pass-stub::before { top: -14px; left: -14px; }
.pass-stub::after { top: -14px; right: -14px; }
@media (min-width: 800px) {
  .pass-stub::before { top: -14px; left: -15px; }
  .pass-stub::after { top: auto; right: auto; bottom: -14px; left: -15px; }
}
.pass-stub dl { display: grid; gap: 1.1rem; margin: 0; }
.pass-stub p { margin: 0; }
.pass-stub dt { margin-bottom: .3rem; color: var(--ink-3); font: 600 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.pass-stub dd { margin: 0; font-weight: 600; }
.pass-stub .flight { font-family: var(--mono); letter-spacing: .06em; }

.status { display: inline-flex; align-items: center; gap: .5rem; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok); }
.status-soon { color: var(--amber); }
.status-soon::before { animation: pulse 1.8s ease-in-out 2; }
@keyframes pulse { 50% { opacity: .25; } }

.store-badge { display: inline-block; }
.store-badge img { width: 150px; height: auto; }
.store-badge:hover { opacity: .85; }

/* Home: checklist */

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }

.checklist { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.checklist-title {
  margin: 0;
  padding: .9rem 1.4rem;
  background: var(--ink);
  color: var(--bg);
  font: 700 .78rem/1.2 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.checklist ol { margin: 0; padding: 0; list-style: none; }
.checklist li { padding: 1.15rem 1.4rem 1.2rem; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.cl-row { display: flex; align-items: baseline; gap: .55rem; font: 700 .86rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.cl-row .dots { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted var(--ink-3); opacity: .55; }
.cl-row .resp { color: var(--ok); text-align: right; }
.checklist li p { margin: .45rem 0 0; color: var(--ink-2); font-size: .98rem; }

/* Home: the name */

.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); filter: grayscale(1) sepia(.18) contrast(1.04); }
.figure figcaption { margin-top: .8rem; color: var(--ink-3); font: 500 .78rem/1.4 var(--mono); letter-spacing: .04em; }

/* Call to action band */

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2rem, 6vw, 3.75rem);
  border-radius: 28px;
  background: var(--grad-strong);
  color: #fff;
}
.cta h2 { margin: 0 0 .35rem; color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta p { margin: 0; color: #fff; }
.cta .btn:focus-visible { outline-color: #fff; }

/* Inner pages: header with a faint chart grid */

.page-head { position: relative; isolation: isolate; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(#000, transparent 92%);
  mask-image: linear-gradient(#000, transparent 92%);
}
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); }
.page-head .lead { margin-bottom: 0; }
.crumb { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; }
/* The first section right under a page header needs less space above it */
.page-head + .section { padding-top: clamp(1.5rem, 4vw, 3rem); }

.prose { max-width: 720px; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 2.4rem; font-size: 1.3rem; letter-spacing: -.01em; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }

/* About: logbook */

.logbook-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.logbook { width: 100%; min-width: 520px; border-collapse: collapse; }
.logbook caption { padding: .9rem 1.25rem; background: var(--ink); color: var(--bg); font: 700 .78rem/1.2 var(--mono); letter-spacing: .18em; text-align: left; text-transform: uppercase; }
.logbook th { padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); color: var(--ink-3); font: 600 .7rem/1 var(--mono); letter-spacing: .16em; text-align: left; text-transform: uppercase; }
.logbook td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.logbook tr:last-child td { border-bottom: 0; }
.logbook td:first-child { color: var(--accent); font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.logbook td:last-child { color: var(--ink-3); font-family: var(--mono); font-size: .86rem; white-space: nowrap; }

/* Contact */

.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.35fr 1fr; } }
.card { padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card h2 { font-size: 1.35rem; letter-spacing: -.01em; }
.card > :last-child { margin-bottom: 0; }
.mail-big { display: inline-block; margin: .25rem 0 1rem; font: 700 clamp(1.45rem, 4.2vw, 2.2rem)/1.2 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
address { font-style: normal; }
.mt { margin-top: 2rem; }

/* Privacy overview */

.checks { display: grid; gap: .6rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: .65rem; font-weight: 600; }
.checks li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .8rem; }
.policies { display: grid; gap: 1rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.policies li { display: flex; align-items: center; gap: 1rem; }
.policies .app-icon { width: 56px; height: 56px; }
.policies strong, .policies a { display: block; }

/* App page (Time) */

.app-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 70% at 85% 30%, rgba(239, 125, 18, .2), transparent 70%);
}
.app-hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 940px) { .app-hero-grid { grid-template-columns: 1fr 1fr; } }
.app-hero .app-icon { width: 112px; height: 112px; margin-bottom: 1.6rem; }
.app-hero h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; }
.chips li { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .9rem; }

.phones { display: flex; justify-content: center; gap: clamp(.75rem, 3vw, 1.5rem); }
.phones img { width: 46%; max-width: 250px; border-radius: 26px; box-shadow: 0 24px 50px rgba(10, 13, 28, .25); }
.phones img + img { margin-top: 3rem; }

.features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.feature { padding: 1.6rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.feature h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.key { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 1.1rem; border-radius: 15px; background: var(--time); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.key svg { width: 24px; height: 24px; }

.pro { display: grid; gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.75rem, 5vw, 3rem); border-radius: 26px; background: #18233a; color: #e7ecf7; }
@media (min-width: 860px) { .pro { grid-template-columns: 1fr 1fr; } }
.pro .eyebrow { color: #ffb070; }
.pro h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.pro p { color: #b6c0d6; margin: 0; }
.pro ul { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.pro li { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.pro li svg { flex: none; width: 22px; height: 22px; color: #3ed6b5; }

.shots { display: flex; gap: 1rem; overflow-x: auto; padding: .25rem 0 1.25rem; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.shots img { flex: none; width: clamp(180px, 42vw, 236px); border-radius: 22px; scroll-snap-align: start; box-shadow: var(--shadow); }

.link-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 404 */

.lost { padding: clamp(1rem, 4vw, 2.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); text-align: center; }
.lost .lead { margin-inline: auto; }
.lost .actions { justify-content: center; }
.lost svg { width: 120px; margin: 0 auto 2rem; color: var(--accent); }

/* Footer */

.site-footer { padding: 3.25rem 0 2.25rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }
.site-footer .brand { margin-bottom: .75rem; }
.site-footer p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-nav a { color: var(--ink-2); font-weight: 500; }
.footer-nav a:hover { color: var(--ink); }

.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.social a:hover { border-color: var(--ink-3); background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.social svg { width: 18px; height: 18px; }

.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .8rem; line-height: 1.5; }
.legal p + p { margin-top: .4rem; }

/* Motion off when the visitor asks for it */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .route .plane-live { display: none; }
  .route .plane-still { display: inline; }
}
