/* Turing Forge "Showcase" (Spec 5; tokens and components from Yuri's website design spec, DS §2–3). */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #55555b;
  --panel: #f3f3f5;
  --rule: #d8d8dc;
  --link: #0a58ca;
  /* The same in both modes: header bar, hero, footer. */
  --night: #121214;
  --night-text: #ececf0;
  --night-muted: #b9b9c0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1d;
    --fg: #ececf0;
    --muted: #b0b0b8;
    --panel: #232327;
    --rule: #34343a;
    --link: #79b0ff;
  }
}

/* Tile colours, darker than the icons so white text passes 4.5:1. */
.app-ai { --t1: #c2410c; --t2: #9a3412; }
.app-ss { --t1: #152a57; --t2: #0b1734; }
.app-lg { --t1: #2c7360; --t2: #1f5446; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

a { color: var(--link); }

a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

img { display: block; }

.in { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header bar (DS 1): dark in both modes. */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  padding: 8px max(20px, calc((100% - 1000px) / 2));
  background: var(--night);
}
.site-header .brand { display: flex; align-items: center; min-height: 44px; }
.site-header .brand img { height: 28px; width: auto; }
.site-header nav { display: flex; margin-left: auto; margin-right: -10px; }
.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--night-text);
  font-size: 15px;
  text-decoration: none;
}

@media (max-width: 359px) {
  .site-header { padding-left: 16px; padding-right: 16px; gap: 0 8px; }
  .site-header .brand img { height: 24px; }
  .site-header nav { margin-right: -6px; }
  .site-header nav a { padding: 0 6px; }
}

/* Links on dark surfaces get a white focus ring. */
.site-header a:focus-visible,
.hero a:focus-visible,
.site-footer a:focus-visible { outline-color: #ffffff; }

/* Showcase type (DS §2). */

.showcase h1, .showcase h2, .showcase h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
.showcase main p { margin: 0; }

.showcase h1 { font-size: clamp(44px, 10vw, 88px); font-weight: 800; letter-spacing: -0.04em; }
.showcase main h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; }

.lead { font-size: clamp(18px, 2.4vw, 22px); max-width: 32em; }

.icon { border-radius: 22.37%; }

/* Home hero (DS 2, round 3). */

.hero { background: var(--night); color: var(--night-text); padding: 40px 0 64px; }
.hero .lead { color: var(--night-muted); margin-top: 22px; }

.hero-pills { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pills li {
  border: 1.5px solid #3a3a40;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #ececf0;
}
.hero-pills li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: #f57a3d;
  vertical-align: 2px;
}

.showcase .cta-row { margin-top: 26px; }
.cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--night-text);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}
.hero .cta:focus-visible { outline-offset: 3px; }

/* Feature tile (DS 3) and app tiles (DS 4): whole-tile links on the page surface. */

.featured { padding: 32px 0 4px; }

.feature, .card { display: block; color: #ffffff; text-decoration: none; }
.feature:focus-visible, .card:focus-visible { outline-offset: 3px; }

.feature {
  border-radius: 28px;
  padding: 26px;
  background: radial-gradient(130% 100% at 0% 0%, var(--t1), var(--t2));
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.showcase main .eyebrow { margin-bottom: 14px; }
.feature-head { display: flex; gap: 16px; align-items: center; }
.feature-head .icon { width: 88px; height: 88px; flex: none; }
.showcase main .feature h2 { margin: 0; }
.feature .line, .card .line { font-size: 18px; font-weight: 600; }
.showcase main .feature .line { margin-top: 4px; }

.feature .icon, .card .icon { outline: 2px solid rgba(255, 255, 255, 0.25); }

.paths { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
.path {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.16);
}
.path img { width: 40px; height: 40px; grid-row: span 2; }
.path h3 { font-size: 16px; }
.path p { font-size: 15px; }
.showcase main .path p { margin-top: 2px; }

@media (min-width: 620px) {
  .paths { grid-template-columns: repeat(3, 1fr); }
  .path { display: block; }
  .showcase main .path h3 { margin-top: 8px; }
}

.showcase main .feature .proof { font-size: 18px; font-weight: 700; margin-top: 18px; }
.showcase main .feature .status { margin-top: 10px; }
.status { font-size: 13px; }
.showcase main .go { margin-top: 8px; }
.go span { font-weight: 700; border-bottom: 2px solid #ffffff; }

.apps { padding: 40px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }

.card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(160deg, var(--t1), var(--t2));
}
.card .icon { width: 84px; height: 84px; }
.card h3 { font-size: 24px; font-weight: 800; }
.showcase main .card .line { margin-top: 4px; }
.card .more { font-size: 15px; max-width: 36em; }
.showcase main .card .more { margin-top: 8px; }
.showcase main .card .status { margin-top: 14px; }

@media (min-width: 520px) {
  .card { grid-template-columns: auto 1fr; gap: 18px; }
}

/* Contact band (DS 5) and legal-links band (DS 10). Ink is --fg, so it turns light in dark mode. */

.contact { background: var(--panel); padding: 36px 0; }
.contact a, .legal-links a { color: var(--fg); font-weight: 700; text-decoration: underline; }

.legal-band { background: var(--panel); padding: 12px max(20px, calc((100% - 1000px) / 2)); }
.legal-links { margin: 0; }
.legal-links a { display: inline-block; padding: 10px 0; }

/* App page hero (DS 7), "where it runs" rows (DS 8) and steps (DS 9). */

.app-hero { background: linear-gradient(160deg, var(--t1), var(--t2)); color: #ffffff; padding: 40px 0 48px; }
.app-hero .icon { width: 112px; height: 112px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.showcase main .app-hero .lead { margin-top: 16px; }
.showcase main .app-hero .status { margin-top: 16px; font-weight: 700; }
/* Apple's "Download on the App Store" badge: unaltered artwork, 40 px high (Apple's minimum), clear space of at least
   a quarter of its height on every side. */
.showcase main .app-hero .badge { margin-top: 16px; padding: 10px 0; }
.app-hero .badge a { display: inline-block; }
.app-hero .badge img { display: block; width: 120px; height: 40px; }

.body-section { padding: 36px 0; }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.row { display: flex; gap: 16px; align-items: flex-start; }
.row img { width: 56px; height: 56px; flex: none; }
.row h3 { font-size: 18px; }
.showcase main .row h3 { margin-bottom: 2px; }

.steps { counter-reset: step; }
.steps .row { counter-increment: step; }
.steps .row::before {
  content: counter(step);
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--t2);
  color: #ffffff;
  font-weight: 700;
}
.steps .row > div { padding-top: 8px; }

/* The navy and green fills almost vanish on the dark page, so the circles get a ring there (Duke, Spec 5 review). */
@media (prefers-color-scheme: dark) {
  .steps .row::before { box-shadow: 0 0 0 2px var(--muted); }
}

.showcase main .proof { font-size: 22px; font-weight: 800; margin-top: 24px; }
.closing { margin-top: 24px; }
.showcase main .closing p + p { margin-top: 6px; }

/* Doc pages (support, legal, 404): page background, 70ch, the old base type with a smaller h1. */

.doc main {
  max-width: calc(70ch + 40px);
  margin: 0 auto;
  padding: 8px 20px 40px;
  line-height: 1.6;
}
.doc h1 { font-size: clamp(28px, 5vw, 36px); font-weight: 800; line-height: 1.2; margin: 1.5rem 0 1rem; }
.doc h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
.doc hr { border: 0; border-top: 1px solid var(--rule); }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.25rem 0; }
.doc table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.doc th, .doc td { border: 1px solid var(--rule); padding: 0.45rem 0.6rem; text-align: left; vertical-align: top; }
.doc th { background: var(--panel); }

/* Footer (DS 6): dark in both modes. */

.site-footer { background: var(--night); color: var(--night-muted); font-size: 14px; }
.site-footer .in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; margin: 0; }
.foot-brand img { width: 26px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; margin: 0 -8px 0 auto; }
.site-footer nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--night-text);
  text-decoration: none;
}

@media (max-width: 619px) {
  .site-footer nav { margin-left: -8px; }
}
