/* Echo App Studio — one stylesheet for every page. Colours and sizes live in :root. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/InterDisplay-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/InterDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/InterDisplay-ExtraBold.woff2") format("woff2"); }

:root {
  /* measured from the concept */
  --paper: #f9f8f3;
  --band: #f0ece6;        /* approach band and the "coming soon" tag */
  --blue: #1c4bed;
  --ink: #0c0d0e;
  --ink-2: #212324;       /* footer text */
  --nav: #1f2023;
  --slate: #50505a;       /* subline, tag text */
  --grey: #67676a;        /* eyebrow, numbers */
  --grey-body: #6b6a6d;   /* approach text (concept #767577, darkened slightly to stay readable on the band) */
  --rule: #cac8c3;
  --divider: #cdc9c3;
  --white: #ffffff;

  /* One "design pixel": the concept is 1056 px wide. Everything scales with the window
     between 720 and 1440 px wide, so the proportions stay the same. */
  --s: clamp(0.682px, calc(100vw / 1056), 1.364px);
  --gutter: calc(63 * var(--s));

  --text: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: calc(1056 * var(--s)); margin: 0 auto; padding: 0 var(--gutter); }

/* Keyboard users: a clear focus ring everywhere, and a skip link. */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--blue); color: var(--white); padding: 10px 16px; font-weight: 500; text-decoration: none;
}
.skip:focus-visible { top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(38 * var(--s)) 0 calc(28 * var(--s));
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: calc(28 * var(--s)); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: max(17px, calc(26 * var(--s))); letter-spacing: -0.02em; line-height: 1; }
.brand img { width: calc(32 * var(--s)); height: calc(30 * var(--s)); min-width: 22px; min-height: 20px; }
.brand span { white-space: nowrap; }
.nav { display: flex; gap: calc(44 * var(--s)); margin: 0; padding: 0; list-style: none; }
.nav a, .footer a { color: var(--nav); text-decoration: none; font-size: max(16px, calc(17.6 * var(--s))); white-space: nowrap; letter-spacing: -0.01em; }
.nav a:hover, .footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- Hero ---------- */
.hero .wrap { padding-top: calc(177 * var(--s)); padding-bottom: calc(68 * var(--s)); }
.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(122 * var(--s));
  line-height: 1.035;
  letter-spacing: -0.052em;
  margin-left: -0.03em;
  color: var(--ink);
}
.headline span { display: block; white-space: nowrap; }
.subline {
  margin: calc(19 * var(--s)) 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(40.5 * var(--s));
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--slate);
  text-wrap: balance;
}
.status {
  display: inline-flex; align-items: center; gap: calc(14 * var(--s));
  margin: calc(34 * var(--s)) 0 0;
  background: var(--band); color: var(--slate);
  height: calc(45 * var(--s)); min-height: 36px;
  padding: 0 calc(18 * var(--s)) 0 calc(15 * var(--s)); border-radius: 6px;
  font-size: max(15px, calc(17 * var(--s))); letter-spacing: -0.01em;
}
.status::before { content: ""; width: calc(16 * var(--s)); height: calc(16 * var(--s)); min-width: 11px; min-height: 11px; background: var(--blue); border-radius: 50%; flex: none; }
.tile { width: calc(196 * var(--s)); height: calc(196 * var(--s)); margin: calc(88 * var(--s)) 0 0 auto; }

/* ---------- Approach band ---------- */
.band { background: var(--band); padding: calc(64 * var(--s)) 0 calc(56 * var(--s)); }
.eyebrow { margin: 0; font-size: max(12px, calc(14.5 * var(--s))); font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); line-height: 1; }
.cols {
  display: grid;
  grid-template-columns: minmax(0, 283fr) minmax(0, 352fr) minmax(0, 295fr);
  margin: calc(14 * var(--s)) 0 0; padding: 0; list-style: none;
}
.col { padding: calc(28 * var(--s)) calc(30 * var(--s)) calc(26 * var(--s)) calc(34 * var(--s)); }
.col:first-child { padding-left: 0; }
.col:last-child { padding-right: 0; }
.col + .col { border-left: 1px solid var(--divider); }
.col .num { display: block; font-size: max(16px, calc(21 * var(--s))); line-height: 1; color: var(--grey); font-feature-settings: "tnum"; }
.col h2 { margin: calc(18 * var(--s)) 0 0; font-family: var(--display); font-weight: 700; font-size: calc(35 * var(--s)); line-height: 1.1; letter-spacing: -0.04em; white-space: nowrap; }
.col p { max-width: 12.5em; margin: calc(16 * var(--s)) 0 0; font-size: max(16px, calc(20.5 * var(--s))); line-height: 1.56; letter-spacing: -0.01em; color: var(--grey-body); }

/* ---------- Apps (hidden until the first app is ready; see README) ---------- */
.apps { padding: calc(72 * var(--s)) 0; }
.apps .eyebrow { margin-bottom: calc(28 * var(--s)); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.app-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.app-card .shot { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--band); }
.app-card .body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.app-card .head { display: flex; align-items: center; gap: 14px; }
.app-card .icon { width: 52px; height: 52px; }
.app-card h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.04em; }
.app-card p { margin: 0; color: var(--grey-body); }
.app-card .meta { font-size: 14px; }
.app-card .action { align-self: flex-start; margin-top: auto; padding: 11px 18px; background: var(--blue); color: var(--white); text-decoration: none; font-weight: 500; border-radius: 6px; }
.app-card .action[aria-disabled="true"] { background: var(--band); color: var(--slate); }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px;
  padding: calc(36 * var(--s)) 0 calc(43 * var(--s));
  border-top: 1px solid var(--rule);
}
.foot-brand { display: inline-flex; align-items: center; gap: calc(31 * var(--s)); color: var(--ink-2); font-size: max(16px, calc(18 * var(--s))); letter-spacing: -0.01em; }
.foot-brand img { width: calc(26 * var(--s)); height: calc(25 * var(--s)); min-width: 20px; min-height: 19px; }
.footer ul { display: flex; gap: calc(36 * var(--s)); margin: 0; padding: 0; list-style: none; }

/* ---------- Text pages (privacy, 404) ---------- */
.page-hero .wrap { padding-top: calc(120 * var(--s)); padding-bottom: calc(56 * var(--s)); }
.page-hero .headline { font-size: calc(110 * var(--s)); }
.page { padding: 0 0 calc(72 * var(--s)); }
.prose { max-width: 720px; }
.prose h2 { margin: 2.2em 0 0.5em; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.04em; line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--slate); font-size: 18px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); text-underline-offset: 4px; }
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: calc(28 * var(--s)); }
.contact-email { margin: 0; font-family: var(--display); font-weight: 700; font-size: calc(44 * var(--s)); line-height: 1.1; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.button {
  display: inline-flex; align-items: center; height: calc(52 * var(--s)); min-height: 44px; padding: 0 calc(24 * var(--s));
  background: var(--blue); color: var(--white); border-radius: 10px; text-decoration: none;
  font-weight: 500; font-size: max(16px, calc(18 * var(--s))); letter-spacing: -0.01em;
}
.button:hover { background: #1640d4; }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .topbar { padding: 22px 0 18px; }
  .brand { gap: 12px; font-size: 18px; }
  .nav { gap: 22px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 48px; }
  .headline { font-size: clamp(34px, 11.6vw, 84px); }
  .subline { margin-top: 16px; font-size: clamp(20px, 5.4vw, 30px); line-height: 1.25; }
  .status { margin-top: 26px; height: 38px; padding: 0 14px 0 13px; gap: 10px; }
  .status::before { width: 12px; height: 12px; }
  .tile { width: 104px; height: 104px; margin-top: 44px; }
  .band { padding: 44px 0 20px; }
  .cols { grid-template-columns: 1fr; margin-top: 12px; }
  .col, .col:first-child, .col:last-child { padding: 22px 0 24px; }
  .col + .col { border-left: 0; border-top: 1px solid var(--divider); }
  .col h2 { margin-top: 14px; font-size: clamp(26px, 7.4vw, 34px); white-space: normal; }
  .col p { max-width: 30em; margin-top: 8px; font-size: 17px; line-height: 1.5; }
  .footer { padding: 24px 0 32px; }
  .foot-brand { gap: 14px; }
  .footer ul { gap: 24px; }
  .page-hero .wrap { padding-top: 56px; padding-bottom: 36px; }
  .page-hero .headline { font-size: clamp(44px, 14vw, 84px); }
  .contact { gap: 20px; }
  .contact-email { font-size: clamp(24px, 7.2vw, 34px); }
}
@media (max-width: 420px) {
  .nav { gap: 16px; }
  .nav a { font-size: 15px; }
  .brand { font-size: 16px; gap: 10px; }
  .prose h2 { font-size: 26px; margin-top: 1.6em; }
}
@media (max-width: 380px) {
  .topbar { gap: 12px; }
  .nav { gap: 12px; }
  .nav a { font-size: 14px; }
  .brand { font-size: 15px; }
}
@media (max-width: 340px) {
  .brand span { display: none; } /* the mark alone still links home and keeps its label */
}
