/* Seatprint's site, in the app's design language ("Press Run").
   Every value below is a token from design/mockups/ios-v1-independent/tokens.css,
   press.css or keepsake.css unless its comment says otherwise. System faces only:
   New York and SF on Apple devices, the tokens' own fallbacks elsewhere. Nothing is
   downloaded from anywhere else. */

:root {
  color-scheme: light dark;
  /* tokens.css, light */
  --paper: #F5F0E6;
  --paper-raised: #FFFCF5;
  --paper-sunk: #E8E0CF;
  --ink: #18172B;
  --ink-2: #45425A;
  --ink-3: #5C586D;
  --rule: #D6CCB8;
  --field-edge: #8A8170;
  --action: #2B3AC4;
  --on-action: #FFFFFF;
  --link: #2B3AC4;
  --offset: #FF4F9A;
  --spot-yellow: #FFCB2E;
  --highlight: #FFE58C;
  --illo-phone: #111118;
  --illo-phone-edge: #2A2A33;
  --print-paper: #FFFFFF;
  --print-ink: #000000;
  --shadow-ks: 0 1px 2px rgba(0,0,0,.18), 0 8px 18px rgba(0,0,0,.16);
  --ks-drop: drop-shadow(0 1px 2px rgba(0,0,0,.18)) drop-shadow(0 8px 18px rgba(0,0,0,.16));

  --sp-1: 4px; --sp-1h: 6px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-8h: 48px; --sp-9: 56px;
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px; --r-pill: 999px;
  --hit: 44px;
  --stroke: 1.5px;
  --offset-s: 2px; --offset-x: 3px; --offset-y: 3px;
  --icon-l: 28px; --icon-m: 22px;
  --appmark: 34px;
  --pill-h: 34px;
  --offset-l: 4px;
  --step-tile: 56px; --step-badge: 20px;

  --font-ui: -apple-system, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-serif: ui-serif, "New York", "Sitka Text", Georgia, serif;
  --font-serif-display: ui-serif, "New York", "Sitka Heading", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --t-display: 700 40px/44px var(--font-serif-display);
  --t-large-title: 700 34px/41px var(--font-serif-display);
  --t-title-1: 700 28px/34px var(--font-serif-display);
  --t-title-2: 700 22px/28px var(--font-ui);
  --t-title-3: 600 20px/25px var(--font-ui);
  --t-headline: 600 17px/22px var(--font-ui);
  --t-body: 400 17px/22px var(--font-ui);
  --t-voice: 400 17px/25px var(--font-serif);
  --t-voice-large: 400 21px/29px var(--font-serif);
  --t-subhead: 400 15px/20px var(--font-ui);
  --t-footnote: 400 13px/18px var(--font-ui);
  --t-slug: 600 11px/14px var(--font-mono);
}

/* tokens.css .dark */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12121F;
    --paper-raised: #1D1D30;
    --paper-sunk: #09090F;
    --ink: #F3EEE3;
    --ink-2: #C6C1D2;
    --ink-3: #A39EB5;
    --rule: #33334A;
    --field-edge: #77738C;
    --action: #4A5AEC;
    --link: #A3ADFF;
    --offset: #FF5FA8;
    --highlight: #3B3416;
    --illo-phone-edge: #77738C;
    --shadow-ks: 0 1px 2px rgba(0,0,0,.5), 0 8px 18px rgba(0,0,0,.5);
    --ks-drop: drop-shadow(0 1px 2px rgba(0,0,0,.5)) drop-shadow(0 8px 18px rgba(0,0,0,.5));
  }
}

*, *::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: var(--t-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-5); }
.narrow { max-width: 720px; }

/* read by screen readers, not shown */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--sp-4); top: -100px; background: var(--action); color: var(--on-action); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-s); z-index: 10; }
.skip:focus { top: var(--sp-4); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }

/* the slug: 11/14 monospaced uppercase, 0.12em tracking (CLAUDE.md, the type tokens) */
.slug { font: var(--t-slug); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ===== header: the app mark and the name ===== */
.top { padding: var(--sp-4) 0; border-bottom: var(--stroke) solid var(--rule); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2h, 10px); color: var(--ink); text-decoration: none; font: var(--t-title-2); font-family: var(--font-serif-display); }
.brand img { width: var(--appmark); height: var(--appmark); border-radius: var(--r-s); }

/* ===== hero ===== */
.hero { padding: var(--sp-8) 0 var(--sp-9); }
.hero-grid { display: grid; gap: var(--sp-8); }
.hero-copy > * + * { margin-top: var(--sp-4); }
h1 { font: var(--t-display); letter-spacing: -.01em; }
.promise { font: var(--t-voice-large); color: var(--ink); }
.promise em { font-style: italic; }
.lede { font: var(--t-voice); color: var(--ink-2); }
.store { padding-top: var(--sp-3); min-height: 50px; }
/* the header's slot: Apple's badge at 40 px, its minimum on screen, with the header's
   own padding as clear space; before release a smaller "Coming soon" pill */
.store-top { padding-top: 0; min-height: 0; }
.store-top .badge { margin: 0 0 0 10px; }
.store-top .badge img { height: 40px; }
.store-top .soon { min-height: var(--pill-h); padding: 0 var(--sp-3); font: var(--t-subhead); font-weight: 600; }
@media (max-width: 559px) {
  .soon-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* the app icon, large: iOS's icon corner (about 22.4% of its size) and the press offset */
.hero-icon img { width: 96px; height: 96px; border-radius: 22.37%; box-shadow: var(--offset-l) var(--offset-l) 0 var(--offset); }
.hero-icon { display: block; margin-bottom: var(--sp-6); }
/* In dark, the dark icon's own background is close to the page's paper, so its edge is drawn
   with the field-edge line (the token Start's drawn phone uses for its edge on the dark bed). */
@media (prefers-color-scheme: dark) {
  .brand img { box-shadow: 0 0 0 var(--stroke) var(--field-edge); }
  .hero-icon img { box-shadow: 0 0 0 var(--stroke) var(--field-edge), var(--offset-l) var(--offset-l) 0 var(--offset); }
}

/* Apple's badge: shown at 50 px tall (Apple's minimum on screen is 40 px), with clear
   space of a quarter of its height around it. */
.badge { display: inline-block; margin: 12px; margin-left: 0; border-radius: 8px; }
.badge img { height: 50px; width: auto; }
.soon { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--hit); padding: 0 var(--sp-4);
        border: var(--stroke) solid var(--ink); border-radius: var(--r-pill); background: var(--paper-raised);
        box-shadow: var(--offset-s) var(--offset-s) 0 var(--offset); font: var(--t-headline); color: var(--ink); }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spot-yellow); box-shadow: 0 0 0 1.5px var(--ink); }

/* the preview, in a drawn phone (the illo-phone tokens Start's drawing uses) */
.hero-phone { justify-self: center; width: min(300px, 78vw); }
.phone { position: relative; border-radius: 44px; padding: 10px; background: var(--illo-phone);
         box-shadow: 0 0 0 var(--stroke) var(--illo-phone-edge), var(--sp-1h) var(--sp-1h) 0 var(--stroke) var(--offset); }
.phone video { width: 100%; aspect-ratio: 600 / 1300; border-radius: 34px; background: var(--paper-sunk); }
.play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer;
        background: var(--action); box-shadow: var(--offset-x) var(--offset-y) 0 var(--offset); }
.play span { display: block; margin-left: 28px; width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--on-action); }
.play[hidden] { display: none; }
.caption { margin-top: var(--sp-4); font: var(--t-footnote); color: var(--ink-3); text-align: center; }

/* ===== sections ===== */
section { padding: var(--sp-9) 0; }
section.band { background: var(--paper-raised); border-top: var(--stroke) solid var(--rule); border-bottom: var(--stroke) solid var(--rule); }
section.hero { padding-top: var(--sp-8); }
h2 { font: var(--t-title-1); margin-top: var(--sp-2); }
.voice { font: var(--t-voice); color: var(--ink-2); margin-top: var(--sp-4); }
.small { font: var(--t-subhead); margin-top: var(--sp-4); }

/* glyphs: the mockup's stand-in PNGs as masks, so they take a token color */
.glyph { display: inline-block; width: var(--icon-l); height: var(--icon-l); background: currentColor;
         -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.g-camera { --g: url(assets/glyphs/i-camera.png); }
.g-palette { --g: url(assets/glyphs/i-palette.png); }
.g-printer { --g: url(assets/glyphs/i-printer-free.png); }
.g-lock { --g: url(assets/glyphs/i-lock.png); }
.g-stub { --g: url(assets/glyphs/i-stub.png); }
.g-gift { --g: url(assets/glyphs/i-gift.png); }

/* the three steps: press.css .stepstrip tiles */
.steps { list-style: none; padding: 0; margin-top: var(--sp-7); display: grid; gap: var(--sp-7); }
.steps li { display: grid; grid-template-columns: var(--step-tile) 1fr; column-gap: var(--sp-4); row-gap: var(--sp-1); align-items: start; align-content: start; }
.steps h3 { font: var(--t-title-3); grid-column: 2; align-self: end; }
.steps p { font: var(--t-subhead); color: var(--ink-2); grid-column: 2; }
.tile { grid-row: span 2; width: var(--step-tile); height: var(--step-tile); border-radius: var(--r-m); background: var(--paper-raised);
        display: grid; place-items: center; position: relative; color: var(--ink);
        border: var(--stroke) solid var(--ink); box-shadow: var(--offset-s) var(--offset-s) 0 var(--offset); }
section.band .tile { background: var(--paper); }
.tile b { position: absolute; top: calc(-1 * var(--sp-2)); left: calc(-1 * var(--sp-2)); width: var(--step-badge); height: var(--step-badge);
          border-radius: 50%; background: var(--ink); color: var(--paper); font: var(--t-slug); line-height: var(--step-badge); text-align: center; }
.tile-solo { display: grid; margin-bottom: var(--sp-4); }

/* ===== Stub and Gift: the app's own renders, notched as keepsake.css's .notched does.
   Inside .ks-frame, 1em is one printed inch, as inside keepsake.css's .ks. ===== */
.formats { display: grid; gap: var(--sp-8); margin-top: var(--sp-7); }
.format { container-type: inline-size; }
.ks-frame { position: relative; font-size: calc(100cqi / 6.1); padding: .3em; width: fit-content; }
.format:nth-child(2) .ks-frame { font-size: calc(100cqi / 7.6); }
/* --shadow-ks as a drop shadow, on a wrapper so the notch mask doesn't clip it */
.ks-sh { display: block; filter: var(--ks-drop); }
.ks { width: 5.5em; height: auto; }
.notch-stub { --perf: 4.3em; }
.notch-gift { --perf: 5.75em; width: 7em; }
.notch-stub, .notch-gift {
  -webkit-mask: radial-gradient(circle .09em at var(--perf) 0, transparent 97%, #000 100%), radial-gradient(circle .09em at var(--perf) 100%, transparent 97%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle .09em at var(--perf) 0, transparent 97%, #000 100%), radial-gradient(circle .09em at var(--perf) 100%, transparent 97%, #000 100%);
  mask-composite: intersect;
}
/* the press bed's crop marks around a keepsake: keepsake.css .pcm's lines (.16 in long, .01 in) */
.cm { position: absolute; width: .22em; height: .22em; --c: var(--ink-3); }
.cm.tl { left: .04em; top: .04em; } .cm.tr { right: .04em; top: .04em; } .cm.bl { left: .04em; bottom: .04em; } .cm.br { right: .04em; bottom: .04em; }
.cm { --w: max(1px, .01em); }
.cm.tl { background: linear-gradient(var(--c), var(--c)) right top / var(--w) .16em no-repeat, linear-gradient(var(--c), var(--c)) left bottom / .16em var(--w) no-repeat; }
.cm.tr { background: linear-gradient(var(--c), var(--c)) left top / var(--w) .16em no-repeat, linear-gradient(var(--c), var(--c)) right bottom / .16em var(--w) no-repeat; }
.cm.bl { background: linear-gradient(var(--c), var(--c)) right bottom / var(--w) .16em no-repeat, linear-gradient(var(--c), var(--c)) left top / .16em var(--w) no-repeat; }
.cm.br { background: linear-gradient(var(--c), var(--c)) left bottom / var(--w) .16em no-repeat, linear-gradient(var(--c), var(--c)) right top / .16em var(--w) no-repeat; }
.format figcaption { display: grid; gap: var(--sp-1); margin-top: var(--sp-3); }
.fmt-name { display: inline-flex; align-items: center; gap: var(--sp-2); font: var(--t-title-3); }
.fmt-name .glyph { width: var(--icon-m); height: var(--icon-m); }
.fmt-text { font: var(--t-subhead); color: var(--ink-2); }

/* ===== print at home: two pages of the app's real Letter export (ExportLayout: stubs four to a
   page and gift tickets three, centred, 0.25 in apart, crop marks at every corner), the stubs
   page in front and the gift tickets' first page behind it ===== */
.print-grid { display: grid; gap: var(--sp-8); }
.facts { list-style: none; padding: 0; margin-top: var(--sp-5); display: grid; gap: var(--sp-2); font: var(--t-body); }
.facts li { display: grid; grid-template-columns: 6.5em 1fr; align-items: baseline; }
.sheet-fig { justify-self: center; width: min(100%, 340px); }
.sheets { position: relative; aspect-ratio: 8.5 / 11; margin: 0 0 0 26%; }
.sheet { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--print-paper); box-shadow: var(--shadow-ks); }
.sheet-back { transform: translate(-30%, -3%) rotate(-5deg); }

/* ===== the closing call ===== */
.cta { text-align: center; }
.cta h2 { font: var(--t-large-title); }
.cta .store { display: flex; justify-content: center; }
.cta .badge { margin: 12px; }

/* ===== footer ===== */
.foot { border-top: var(--stroke) solid var(--rule); padding: var(--sp-7) 0 calc(var(--sp-7) + env(safe-area-inset-bottom)); font: var(--t-subhead); color: var(--ink-2); }
.foot-row { display: grid; gap: var(--sp-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.foot a { color: var(--link); display: inline-flex; align-items: center; min-height: var(--hit); }

/* ===== wider screens ===== */
@media (min-width: 820px) {
  .wrap { padding: 0 var(--sp-8); }
  .hero { padding: var(--sp-9) 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: var(--sp-9); }
  h1 { font-size: 56px; line-height: 60px; }   /* t-display's face and weight, scaled up for a desktop hero */
  h2 { font: var(--t-large-title); }
  .hero-phone { width: 320px; }
  .hero-icon img { width: 128px; height: 128px; }
  .hero-icon { margin-bottom: var(--sp-7); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); }
  .steps li { grid-template-columns: 1fr; }
  .steps h3, .steps p { grid-column: 1; align-self: start; }
  .tile { grid-row: auto; margin-bottom: var(--sp-3); }
  .formats { grid-template-columns: 5.5fr 7fr; align-items: end; }
  .print-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .sheet-fig { width: min(100%, 440px); }
  .foot-row { grid-template-columns: 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
