/* 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 {
  --blue: #0032dc;        /* measured from the concept */
  --paper: #eeece8;
  --ink: #111214;
  --ink-soft: #3c3d40;
  --rule: #c9c6bf;
  --lime: #d2f506;
  --white: #ffffff;

  --gutter: clamp(20px, 5.8vw, 88px);
  --max: 1280px;

  --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;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); 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(--lime); outline-offset: 4px; border-radius: 2px; }
.paper :focus-visible, .page :focus-visible { outline-color: var(--blue); }
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--lime); color: var(--ink); 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: 28px 0 20px; border-bottom: 1.5px solid currentColor; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--text); font-weight: 400; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: clamp(20px, 4.5vw, 58px); margin: 0; padding: 0; list-style: none; }
.nav a, .footer a { text-decoration: none; font-size: 17px; white-space: nowrap; }
.brand span { white-space: nowrap; }
.nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.arrow { display: inline-block; margin-left: 6px; font-size: 0.9em; }

/* ---------- Blue hero ---------- */
.hero { background: var(--blue); color: var(--white); overflow: hidden; }
.hero-copy { padding: clamp(64px, 9vw, 120px) 0 clamp(28px, 3.6vw, 48px); }
.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 11.3vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-left: -0.04em;
}
.headline span { display: block; }
.subline {
  margin: clamp(20px, 2.4vw, 34px) 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 3.62vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.032em;
}
.status {
  display: inline-flex; align-items: center; gap: 12px;
  margin: clamp(26px, 3.2vw, 44px) 0 0;
  background: var(--paper); color: var(--ink);
  padding: 9px 16px 9px 14px; border-radius: 2px;
  font-size: 17px;
}
.status::before { content: ""; width: 14px; height: 14px; background: var(--lime); border-radius: 1px; flex: none; }

.waves { width: 100%; height: clamp(170px, 27vw, 390px); margin-top: clamp(-20px, -1vw, 0px); }
.waves img { width: 100%; height: 100%; }
.hero-end { height: clamp(24px, 3vw, 44px); }

/* ---------- Paper sections ---------- */
.paper { padding: clamp(56px, 6vw, 84px) 0 0; }
.eyebrow { margin: 0 0 clamp(18px, 2vw, 28px); font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }

.rows { margin: 0; padding: 0; list-style: none; border-bottom: 1.5px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 10.8% minmax(0, 45.9%) 1fr;
  align-items: center;
  gap: 0;
  padding: clamp(18px, 2.1vw, 30px) 0;
}
.row + .row { border-top: 1px solid var(--ink); }
.row .num { font-size: 19px; font-feature-settings: "tnum"; }
.row h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.05; letter-spacing: -0.042em; }
.row p { margin: 0; font-size: 17px; color: var(--ink-soft); }

/* ---------- Apps (hidden until the first app is ready; see README) ---------- */
.apps { padding-bottom: clamp(56px, 6vw, 84px); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 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: 4px; overflow: hidden; }
.app-card .shot { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: #dcd9d3; }
.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(--ink-soft); }
.app-card .meta { font-size: 14px; color: var(--ink-soft); }
.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: 2px; }
.app-card .action[aria-disabled="true"] { background: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding: clamp(28px, 3vw, 40px) 0 clamp(36px, 4vw, 56px); font-size: 17px; }
.footer ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }

/* ---------- Text pages (privacy, 404) ---------- */
.page-hero .hero-copy { padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero .headline { font-size: clamp(46px, 8vw, 112px); }
.page { padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.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(--ink-soft); font-size: 18px; }
.prose a { text-underline-offset: 4px; }
.page + .wrap .footer { border-top: 1.5px solid var(--ink); }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  body, .nav a, .footer a { font-size: 16px; }
  .topbar { padding: 22px 0 16px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand img { width: 24px; height: 24px; }
  .headline { line-height: 0.92; letter-spacing: -0.045em; }
  .status { font-size: 15px; }
  .row { grid-template-columns: 44px 1fr; gap: 6px 8px; padding: 22px 0; }
  .row p { grid-column: 2; font-size: 16px; }
  .row .num { font-size: 16px; align-self: start; padding-top: 0.45em; }
}
@media (max-width: 420px) {
  .nav { gap: 16px; }
  .nav a { font-size: 15px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 20px; height: 20px; }
  .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 */
}
