/* repcup.com, the home page. Every value is from the canvas board "Website v2" (W2_Home, and
   W2_HomePhone for phones); the drawings in site/_art/ carry their own inline styles. */

/* The design's fonts are the variable ones: Bricolage's letter shapes follow the size (optical
   size axis), which is what makes the big headlines read tight. Latin subset, served from here. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-latin-opsz.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/figtree-latin-wght.woff2') format('woff2');
}

:root {
  --ink: #16181D;
  --ground: #EDEDEA;
  --card: #FFFFFF;
  --text-2: #3A4250;
  --footnote: #C3C9D4;
  --blue: #2B59FF;
  --blue-dark: #1B3DB8;
  --yellow: #FFC42E;
  --cream: #FFF4D1;
  --mint-tint: #DDF5EA;
  color-scheme: light;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: 'Figtree', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--ink); }

a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* The design's shared classes. */
.hd { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; font-weight: 800; line-height: .95; letter-spacing: -.02em; }
.lb { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.h1 { font-size: clamp(58px, 8.3vw, 122px); }
.h2 { font-size: clamp(36px, 4.4vw, 62px); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.sec { padding-top: 104px; padding-bottom: 104px; }
.two { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.two > .col { flex: 1 1 440px; min-width: 0; }
.two.flip { flex-direction: row-reverse; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* The page clips the wide drawings instead of scrolling sideways. */
.page { background: var(--ground); color: var(--ink); overflow: hidden; }

/* Top bar and hero, on blue. */
.top { background: var(--blue); color: #FFFFFF; }
.bar { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; }
.brand:hover { color: #FFFFFF; }
.brand .hd { font-size: 28px; }
.mark { width: 36px; height: 36px; box-sizing: border-box; flex-shrink: 0; border-radius: 9px; border: 2px solid var(--ink); background: var(--blue); overflow: hidden; }
.navl { display: flex; gap: 30px; align-items: center; }
.navl a { font-weight: 700; font-size: 15px; color: #FFFFFF; text-decoration: none; }
.navl a:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn { box-sizing: border-box; border: 2px solid var(--ink); text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; line-height: 1; }
.btn:active { transform: translateY(2px); }
.btn-small { height: 46px; padding: 0 20px; border-radius: 15px; box-shadow: 0 4px 0 var(--ink); background: var(--yellow); color: var(--ink); font-size: 17px; }
.btn-small:hover { color: var(--ink); }
.btn-small:active { box-shadow: 0 2px 0 var(--ink); }
.btn-big { height: 60px; padding: 0 30px; border-width: 2.5px; border-radius: 18px; box-shadow: 0 5px 0 var(--ink); background: var(--blue); color: #FFFFFF; font-size: 24px; }
.btn-big:hover { color: #FFFFFF; }
.btn-big:active { box-shadow: 0 3px 0 var(--ink); }

.hero { background: var(--blue); color: #FFFFFF; border-bottom: 3px solid var(--ink); }
.hero-body { padding-top: 36px; padding-bottom: 72px; text-align: center; }
.hero h1 { margin: 0 auto; max-width: 980px; font-size: clamp(56px, 7vw, 104px); }
.hero h1 .yellow { color: var(--yellow); }
.hero .lead { margin: 22px auto 0; max-width: 640px; }
.get { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; scroll-margin-top: 24px; }
.hc2t { margin: 0; font-size: 15px; line-height: 1.4; text-align: left; }
.hero-art { margin-top: 44px; display: flex; justify-content: center; }

/* The App Store badge (Apple's artwork, after release), or the chip that stands in for it. */
.store img { display: block; width: 168px; height: 56px; }
.soon { height: 56px; box-sizing: border-box; padding: 0 20px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); color: #FFFFFF; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; line-height: 1; }
.soon small { font-size: 12.9px; font-weight: 500; }
.soon span { font-size: 21px; }

/* Section openers: a number disc or a plain label, then the headline. */
.kicker { display: flex; align-items: center; gap: 12px; }
.num { width: 40px; height: 40px; box-sizing: border-box; flex-shrink: 0; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--yellow); color: var(--ink); font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.label { margin: 0; font-size: 13px; color: var(--blue-dark); }
.sec h2 { margin: 12px 0 0; }
.kicker + h2 { margin-top: 14px; }
.sec .lead { margin: 16px 0 0; max-width: 540px; color: var(--text-2); }
.art-col { display: flex; justify-content: center; }

/* 1 Train: the three exercises. */
.exercises { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.exercises li { display: flex; align-items: center; gap: 16px; }
.tile { width: 132px; flex-shrink: 0; box-sizing: border-box; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.exercises h3 { margin: 0; font-size: 26px; }
.exercises p { margin: 4px 0 0; font-size: 16px; line-height: 1.4; color: var(--text-2); }

/* Ticked lists in 2 and 3. */
.ticks { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-size: 18px; line-height: 1.45; color: var(--ink); }
.tick { width: 28px; height: 28px; box-sizing: border-box; flex-shrink: 0; border-radius: 9px; border: 2px solid var(--ink); background: var(--yellow); display: flex; align-items: center; justify-content: center; margin-top: 1px; }

.band-cream { background: var(--cream); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.band-white { background: var(--card); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.band-white .lead { max-width: none; }
.share .lead { max-width: 520px; }

/* Privacy promises and questions: white cards with a hard shadow. */
.sec.flush { padding-top: 0; }
.card { background: var(--card); border: 2.5px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); }
.promise { padding: 24px; }
.promise-icon { width: 48px; height: 48px; box-sizing: border-box; border-radius: 15px; border: 2.5px solid var(--ink); background: var(--mint-tint); display: flex; align-items: center; justify-content: center; }
.promise h3 { margin: 16px 0 0; font-size: 26px; }
.promise p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--text-2); }

.faq { margin-top: 32px; align-items: start; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 800; }
.pm { flex-shrink: 0; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ink); background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.faq details[open] .pm { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 22px 22px; font-size: 16px; line-height: 1.5; color: var(--text-2); }

/* Your turn: the closing band. */
.cta { background: var(--yellow); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); overflow: hidden; position: relative; }
.cta > .wrap { padding-top: 72px; position: relative; }
.cta .two { align-items: flex-end; }
.cta-text { padding-bottom: 72px; }
.cta h2 { margin: 0; }
.cta .lead { margin: 18px 0 0; max-width: 600px; }
.cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.note { margin: 0; font-size: 15px; line-height: 1.4; }

/* Footer. */
.foot { background: var(--ink); color: #FFFFFF; }
.foot .wrap { padding-top: 40px; padding-bottom: 44px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot .mark { width: 32px; height: 32px; border-radius: 8px; }
.foot .brand .hd { font-size: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot nav a { color: #FFFFFF; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal { margin: 24px 0 0; font-size: 13px; line-height: 1.5; color: var(--footnote); }

/* Text pages (privacy, terms, support, not found): the home page's bar and footer around one
   readable column. Not on the board; built from its parts and values. */
.top.solo { border-bottom: 3px solid var(--ink); }
.doc-band { padding: 64px 0 104px; }
.doc { max-width: 820px; }
.doc-title { margin: 12px 0 0; font-size: clamp(44px, 6vw, 72px); }
.doc-date { margin: 14px 0 0; font-size: 15px; color: var(--text-2); }
.doc-short { margin-top: 32px; padding: 24px 24px 26px; background: var(--cream); }
.doc-short h2 { margin: 0; font-size: 26px; }
.doc-short .ticks { margin-top: 16px; }
.doc-short p { margin: 8px 0 0; font-size: 16px; line-height: 1.5; }
.doc-short p.lead { margin-top: 12px; font-size: 21px; font-weight: 700; }
.doc-body { margin-top: 28px; padding: 40px; }
.doc-body > :first-child { margin-top: 0; }
.doc-body h2 { margin: 44px 0 0; font-size: 30px; line-height: 1.05; }
.doc-body h3 { margin: 26px 0 0; font-size: 18px; line-height: 1.3; font-weight: 800; }
.doc-body p, .doc-body li { font-size: 17px; line-height: 1.6; color: var(--ink); }
.doc-body p { margin: 12px 0 0; }
.doc-body ul { margin: 12px 0 0; padding-left: 22px; }
.doc-body li + li { margin-top: 6px; }
.doc-body a, .doc-short a { color: var(--blue-dark); font-weight: 700; text-underline-offset: 3px; }
.doc-body .muted { color: var(--text-2); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.hero :focus-visible, .top :focus-visible { outline-color: #FFFFFF; }

/* The drawings are fixed-size compositions, scaled as one on phones. */
.mheroc2 { width: 980px; height: 540px; flex-shrink: 0; }
.mheroc2 > div { width: 980px; height: 540px; transform: scale(1.0); transform-origin: 0 0; position: relative; }
.mp1 { width: 560px; height: 450px; flex-shrink: 0; }
.mp1 > div { width: 560px; height: 450px; transform: scale(1.0); transform-origin: 0 0; position: relative; }
.mp2 { width: 500px; height: 580px; flex-shrink: 0; }
.mp2 > div { width: 500px; height: 580px; transform: scale(1.0); transform-origin: 0 0; position: relative; }
.mp3 { width: 530px; height: 520px; flex-shrink: 0; }
.mp3 > div { width: 530px; height: 520px; transform: scale(1.0); transform-origin: 0 0; position: relative; }
.mshare { width: 560px; height: 320px; flex-shrink: 0; }
.mshare > div { width: 560px; height: 320px; transform: scale(1.0); transform-origin: 0 0; position: relative; }
.brm { display: none; }

/* Widths the board does not draw (it has 1440 and 390). From 984 to 1180 the sections are two
   columns of 440 to 538, narrower than the drawings: scale them to 440. Below 984 the columns
   stack and the drawings fit again; only the hero needs scaling down to 861. */
@media (min-width: 984px) and (max-width: 1180px) {
  .mp1 { width: 440px; height: 354px; }
  .mp1 > div { transform: scale(0.7857); }
  .mp2 { width: 440px; height: 510px; }
  .mp2 > div { transform: scale(0.88); }
  .mp3 { width: 440px; height: 432px; }
  .mp3 > div { transform: scale(0.8302); }
  .mshare { width: 440px; height: 251px; }
  .mshare > div { transform: scale(0.7857); }
}
@media (max-width: 1040px) and (min-width: 861px) {
  .mheroc2 { width: 784px; height: 432px; }
  .mheroc2 > div { transform: scale(.8); }
}

@media (max-width: 860px) {
  .sec { padding-top: 52px; padding-bottom: 52px; }
  .hero-body { padding-bottom: 52px; }
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .navl { display: none; }
  .two { gap: 36px; }
  .two > .col { flex-basis: 100%; }
  .hc2x { display: none; }
  .brm { display: inline; }
  .hc2t { text-align: center !important; }
  .doc-band { padding: 40px 0 64px; }
  .doc-body { padding: 24px 20px; }
  .doc-body h2 { font-size: 26px; }
  .mheroc2 { width: 529px; height: 292px; }
  .mheroc2 > div { transform: scale(0.54); }
  .mp1 { width: 342px; height: 275px; }
  .mp1 > div { transform: scale(0.6107142857142858); }
  .mp2 { width: 342px; height: 397px; }
  .mp2 > div { transform: scale(0.684); }
  .mp3 { width: 342px; height: 336px; }
  .mp3 > div { transform: scale(0.6452830188679245); }
  .mshare { width: 342px; height: 195px; }
  .mshare > div { transform: scale(0.6107142857142858); }
}

/* The smallest iPhones (320 to 375 wide): the phone sizes above are for 390. */
@media (max-width: 360px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand .hd { font-size: 24px; }
  .btn-small { padding: 0 14px; font-size: 16px; }
}
@media (max-width: 380px) {
  .mp1 { width: 300px; height: 241px; }
  .mp1 > div { transform: scale(0.5357); }
  .mp2 { width: 300px; height: 348px; }
  .mp2 > div { transform: scale(0.6); }
  .mp3 { width: 300px; height: 294px; }
  .mp3 > div { transform: scale(0.566); }
  .mshare { width: 300px; height: 171px; }
  .mshare > div { transform: scale(0.5357); }
}
