/* Draft Capital site, built from the app's design rules (apps/ios/DESIGN.md): studio black holds the
   page, navy is chrome, royal marks structure (the angled section bar is the one signature shape),
   silver is a surface you read, yellow is attention only, green and red are a price's direction only.
   The type is the app's own where the device has it (Apple platforms), and Barlow Condensed (OFL,
   self-hosted: no third-party requests) everywhere else. */

@font-face {
  font-family: "DC Display";
  src: local("Futura-CondensedExtraBold"), url("/assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "DC Name";
  src: local("HelveticaNeue-CondensedBlack"), url("/assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "DC Label";
  src: local("AvenirNextCondensed-DemiBold"), url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --studio: #000000;
  --navy: #101f5a;
  --royal: #2a4fc4;
  --silver: #c8cdd5;
  --silver-deep: #9ea5b2;
  --ink: #000000;
  --secondary-on-silver: #3a404b;
  --caption: #9aa2b1;
  --yellow: #f2d21b;
  --white: #ffffff;
  --text: #e6e9ee;
  --display: "DC Display", "Futura", sans-serif;
  --name: "DC Name", "Helvetica Neue", Arial, sans-serif;
  --label: "DC Label", "Avenir Next", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", Roboto, Arial, sans-serif;
  /* The hard drop shadow ("edge"): white type over navy, royal and black only. */
  --edge: 2px 2px 0 #000;
  --gutter: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--studio); color: var(--text); font: 17px/1.6 var(--body); }
img { max-width: 100%; }

a { color: var(--white); text-decoration-color: var(--royal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--white); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 10; }

/* The bar along the top: persistent chrome, navy, like the app's score bug. */
.bug { background: var(--navy); }
.bug-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font: 800 22px/1 var(--name);
  text-shadow: var(--edge);
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; align-self: stretch; }
.nav a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
  font: 600 19px/1 var(--label);
}
.nav a:hover { background: rgba(42, 79, 196, 0.45); }
.nav a[aria-current="page"] { background: var(--royal); font-family: var(--name); font-weight: 800; text-shadow: var(--edge); }

/* The signature shape: a royal bar cut at an angle on its trailing end, as wide as its words. */
.section-bar {
  display: inline-block;
  margin: 0 0 20px;
  padding: 0 40px 0 16px;
  line-height: 44px;
  background: var(--royal);
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  color: var(--white);
  font: 800 22px/44px var(--name);
  text-shadow: var(--edge);
}

/* ---------- Landing ---------- */

/* The ident: the logo as the launch shows it, its stripes run on to both edges of the window. */
.ident { overflow-x: clip; padding: 40px 0 8px; text-align: center; }
.ident-art {
  position: relative;
  width: min(540px, calc(100vw - 2 * var(--gutter)));
  margin: 0 auto;
  font-size: 0; /* the h1's text is the image's alt */
}
/* The artwork's outer 8% fades out over the stripes running under it: the two crossfade, no seam. */
.ident-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stripe {
  position: absolute;
  z-index: 0;
  width: 100vw;
  /* The artwork's stripes carry a CRT aperture grille; a faint one here keeps the join invisible. */
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 2px);
}
/* Measured on the 1024 px artwork (rows where each stripe meets the image's edge), so they line up at any size. */
.stripe.l { right: 92%; }
.stripe.r { left: 92%; }
.l1 { top: 35.6%; height: 5.3%; background-color: #1b49b4; }
.l2 { top: 41.9%; height: 4.3%; background-color: #1842a5; }
.l3 { top: 47.3%; height: 2.9%; background-color: #13378b; }
.r1 { top: 50.6%; height: 5.3%; background-color: #1c4ab5; }
.r2 { top: 56.8%; height: 4.3%; background-color: #1841a1; }
.r3 { top: 62.4%; height: 2.9%; background-color: #123485; }

.ident-copy { max-width: 720px; margin: 8px auto 0; padding: 0 var(--gutter); }
.lede { margin: 0; color: var(--white); font: 800 clamp(30px, 5vw, 44px)/1.1 var(--name); text-shadow: var(--edge); }
.terms { margin: 12px 0 0; color: var(--text); font: 600 clamp(19px, 2.6vw, 22px)/1.35 var(--label); }
.tag {
  display: inline-block;
  margin: 28px 0 0;
  padding: 9px 16px;
  background: var(--yellow);
  color: var(--ink);
  font: 800 19px/1.2 var(--name);
}

.band { max-width: 1080px; margin: 0 auto; padding: 64px var(--gutter) 0; }
.band-intro { max-width: 62ch; margin: -4px 0 28px; font: 600 20px/1.4 var(--label); color: var(--text); }

/* How it works: lower thirds, a royal bar naming the subject over a silver plate saying what happens. */
.thirds { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 860px) { .thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.third h3 {
  display: inline-block;
  margin: 0;
  padding: 0 36px 0 14px;
  background: var(--royal);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  color: var(--white);
  font: 800 22px/42px var(--name);
  text-shadow: var(--edge);
}
.third p {
  margin: 0;
  padding: 14px 16px 16px;
  background: var(--silver);
  color: var(--ink);
  font: 600 19px/1.4 var(--label);
}

/* Inside the app: real screens, in a plain phone frame. */
.screens { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; justify-items: center; }
@media (min-width: 860px) { .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; } }
.screens figure { margin: 0; max-width: 300px; }
.phone {
  padding: 9px;
  border-radius: 46px;
  background: #000;
  box-shadow: 0 0 0 2px #3a404b, 0 24px 60px rgba(16, 31, 90, 0.55);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 38px; }
.screens figcaption { margin-top: 18px; font: 600 19px/1.4 var(--label); color: var(--text); }
.screens figcaption strong { display: block; color: var(--white); font: 800 22px/1.2 var(--name); }

.fine { max-width: 1080px; margin: 0 auto; padding: 56px var(--gutter) 64px; color: var(--caption); font: 600 17px/1.5 var(--label); }

/* ---------- Privacy and support: plain, readable ---------- */

main.doc { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 56px; }
.doc h1 { margin: 0 0 12px; color: var(--white); font: 800 clamp(40px, 7vw, 64px)/1.05 var(--display); }
.doc .bar { margin: 44px 0 16px; padding: 0 38px 0 14px; line-height: 40px; font-size: 21px; display: inline-block; background: var(--royal); clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); color: var(--white); font-family: var(--name); font-weight: 800; text-shadow: var(--edge); }
.doc h3 { margin: 26px 0 8px; color: var(--white); font-size: 19px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { text-decoration-color: var(--yellow); }
.meta { color: var(--caption); margin: 0 0 8px; }
.review { border-left: 6px solid var(--yellow); background: rgba(242, 210, 27, 0.08); color: var(--white); padding: 12px 16px; margin: 0 0 24px; font-weight: 600; }
.callout { background: var(--navy); padding: 4px 18px; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #263063; }
th { background: var(--navy); color: var(--white); font: 800 16px/1.3 var(--name); }
@media (max-width: 600px) {
  thead { position: absolute; left: -9999px; }
  tr { display: block; border-bottom: 1px solid #263063; padding: 8px 0; }
  td { display: block; border: 0; padding: 4px 12px; }
  td:first-child { color: var(--white); font-weight: 700; }
}
.faq details { background: var(--navy); margin: 10px 0; }
.faq summary { cursor: pointer; padding: 14px 16px; min-height: 44px; color: var(--white); font: 800 19px/1.3 var(--name); }
.faq details[open] summary { box-shadow: inset 0 -2px 0 var(--royal); }
.faq details > div { padding: 4px 16px 12px; }

footer { background: var(--navy); color: var(--caption); }
footer .inner { max-width: 1080px; margin: 0 auto; padding: 22px var(--gutter); display: flex; gap: 8px 22px; flex-wrap: wrap; font: 600 17px/1.4 var(--label); }
footer a { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.35); }
