/* chipline.app
   Colors are the app's own (Chipline/Board/Theme.swift in chipline-ios):
   navy ground, gold, warm card face, and the three team chips. The landing
   page layout follows docs/UI-mockups/Family Fridge, studio black and gold. */

/* Self-hosted so the site makes no third-party requests. Both are variable
   fonts (SIL Open Font License), Latin subset from Google Fonts: Fredoka
   v17, Nunito v32. One file covers every weight. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/fredoka-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/assets/fonts/nunito-latin.woff2) format('woff2');
}

:root {
  --ground: #0D1B2E;
  --ground-raised: #132440;
  --ground-deep: #0A1524;
  --panel: #172A47;
  --line: #24385A;
  --gold: #E8B923;
  --gold-dark: #A07810;
  --gold-soft: rgba(232, 185, 35, 0.35);
  --card: #F4EFE4;
  --ink: #1B1B1A;
  --ink-red: #B3261E;
  --text: #F4EFE4;
  --muted: #A3ACBB;
  --tide: #2E6FB7;
  --ember: #E2662A;
  --iris: #7B4FA8;
  --shell: 1200px;
  --display: 'Fredoka', 'SF Pro Rounded', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; }
a { color: var(--gold); }
a:hover { filter: brightness(1.08); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--gold); color: var(--ground); padding: 8px 14px; z-index: 10; }

.wrap { max-width: var(--shell); margin: 0 auto; padding-left: 48px; padding-right: 48px; }

/* ── Nav ── */
.nav { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; }
.nav-links { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 17px; font-weight: 700; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--gold); }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 20px;
  padding: 16px 30px;
  font-size: 19px;
  line-height: 1.2;
}
.btn-gold { background: var(--gold); color: var(--ground); box-shadow: 0 6px 0 var(--gold-dark); }
.btn-outline { background: var(--ground-raised); color: var(--text); border: 2px solid var(--gold); box-shadow: 0 6px 0 var(--line); }
.btn-pill { border-radius: 999px; padding: 12px 24px; font-size: 17px; box-shadow: none; }
.nav-links .btn-gold { color: var(--ground); }

/* Apple's badge, unaltered. Apple asks for clear space of a quarter of its
   height on every side, which the padding gives. */
.app-badge { display: inline-block; padding: 14px; margin: -14px; border-radius: 18px; }
.app-badge img { display: block; height: 56px; width: auto; }

/* ── Hero ── */
.hero { text-align: center; padding-top: 40px; }
.kicker {
  display: inline-block;
  background: var(--gold);
  color: var(--ground);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 88px); line-height: 0.98; margin: 0 auto 24px; max-width: 900px; letter-spacing: -0.01em; }
.lede { font-size: 22px; line-height: 1.5; max-width: 640px; margin: 0 auto 32px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 20px 24px; justify-content: center; align-items: center; }
.meta { margin-top: 26px; font-size: 15px; font-weight: 700; color: var(--muted); }

/* The real game: the iPad board with a phone's hand leaning on it. */
.devices { position: relative; max-width: 760px; margin: 64px auto 0; padding: 0 60px; }
.device { display: block; background: #05080d; border: 2px solid #2a3a55; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.device img { display: block; width: 100%; height: auto; }
.device-ipad { border-radius: 34px; padding: 14px; width: 82%; }
.device-ipad img { border-radius: 20px; }
.device-iphone { position: absolute; right: 0; bottom: -40px; width: 34%; border-radius: 40px; padding: 9px; }
.device-iphone img { border-radius: 31px; }
.chip { position: absolute; width: 84px; height: 84px; background: var(--tide); box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.35), 0 10px 0 rgba(0, 0, 0, 0.25); }
.chip-tide { border-radius: 50%; left: 0; top: 50px; transform: rotate(-8deg); }
.chip-ember { background: var(--ember); border-radius: 18px; left: 22px; bottom: 90px; width: 70px; height: 70px; transform: rotate(10deg); }
/* Over the iPad's top-right corner, mirroring the circle on the left: the
   iPad's right edge sits at the padding plus the 18% of the row it leaves.
   A clip-path cuts off box-shadow, so the triangle is two clipped layers (a
   pale ring and the iris inside it) and the shadow is a filter on the span. */
.chip-iris {
  background: none; box-shadow: none; width: 96px; height: 88px;
  right: calc(0.18 * (100% - 120px) + 26px); top: 44px; transform: rotate(8deg);
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.25));
}
.chip-iris::before, .chip-iris::after { content: ""; position: absolute; inset: 0; }
.chip-iris::before { background: #A98DC6; clip-path: polygon(50% 4%, 97% 92%, 3% 92%); }
.chip-iris::after { background: var(--iris); clip-path: polygon(50% 30%, 76% 79%, 24% 79%); }

/* ── Bands ── */
.band { padding: 112px 0 96px; }
.band-deep { background: var(--ground-deep); }
.band h2 { font-size: clamp(2.1rem, 4.6vw, 56px); margin-bottom: 14px; }
.sub { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 640px; margin-bottom: 48px; }
.sub-wide { max-width: none; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.step { border-radius: 28px; padding: 28px; background: var(--ground-raised); border: 1px solid var(--c); }
.step-n { font-family: var(--display); font-weight: 700; font-size: 54px; line-height: 1; color: var(--c); }
.step h3 { font-family: var(--body); font-weight: 800; font-size: 22px; margin: 14px 0 8px; line-height: 1.25; }
.step p { font-size: 17px; line-height: 1.5; }

.jacks { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 24px 32px; justify-content: center; }
.jack { display: flex; align-items: center; gap: 20px; background: var(--panel); border: 1px solid var(--gold-soft); border-radius: 28px; padding: 24px 28px; }
/* Two real jacks, fanned like a hand: the second covers all of the first but
   its corner index and eyes. Cropped to the top of the cards, fading out at
   the bottom so they read as cards tucked into the panel. */
.jack-cards {
  flex: none; position: relative; width: 185px; height: 104px;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.jack-cards img {
  position: absolute; top: 0; left: 0; width: 160px; height: 104px;
  object-fit: cover; object-position: top;
}
.jack-cards img + img { left: 25px; }
.jack h3 { font-family: var(--body); font-weight: 800; font-size: 22px; }
.jack p { font-size: 17px; margin-top: 4px; max-width: 240px; line-height: 1.4; }

/* ── Video and the full rules ── */
.watch { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: start; }
.watch video {
  display: block; width: 300px; height: auto; max-height: min(78vh, 650px);
  border-radius: 28px; border: 2px solid #2a3a55; background: var(--ground-deep);
}
.watch figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; max-width: 300px; }
.rules { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.rules li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.6; color: var(--muted); }
.rules strong { display: block; color: var(--text); font-size: 19px; margin-bottom: 4px; }
.prose-sub { font-size: 18px; color: var(--muted); max-width: 44em; }

/* ── Where to play ── */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mode { border-radius: 32px; padding: 36px; background: var(--c); color: var(--on, #fff); }
.mode h3 { font-size: 34px; margin-bottom: 10px; }
.mode p { font-size: 19px; line-height: 1.5; }
.pills { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; font-weight: 700; font-size: 16px; }
.pills li { background: var(--panel); border: 1px solid var(--gold-soft); padding: 10px 18px; border-radius: 999px; }

/* ── Player counts ── */
.table-wrap { overflow-x: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
caption { text-align: left; color: var(--muted); font-size: 17px; padding-bottom: 16px; max-width: 46em; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
thead th { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border-bottom-color: var(--gold-soft); }
tbody th { font-weight: 800; }
td { color: var(--muted); }

/* ── Pricing ── */
.price-box {
  background: var(--ground-raised); border: 2px solid var(--gold); border-radius: 40px; padding: 56px;
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.price-box > div:first-child { flex: 1 1 380px; min-width: 0; }
.price-box h2 { font-size: clamp(2rem, 4vw, 48px); margin-bottom: 16px; }
.price-box p { font-size: 19px; line-height: 1.5; color: rgba(244, 239, 228, 0.85); }
.price-box p + p { margin-top: 12px; }
.prices { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 20px; padding: 18px 24px; background: rgba(244, 239, 228, 0.08); }
.price.featured { background: var(--gold); color: #2e2100; }
.price-name { display: block; font-weight: 800; font-size: 20px; }
.price-note { display: block; font-size: 15px; font-weight: 600; }
.price-amt { font-family: var(--display); font-weight: 700; font-size: 34px; white-space: nowrap; }
.price-amt small { font-family: var(--body); font-weight: 600; font-size: 15px; opacity: 0.8; }
.fine { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 60em; }

/* ── FAQ ── */
.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--ground-raised); border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 19px; padding: 20px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--gold); }
.faq .a { padding-bottom: 22px; color: var(--muted); font-size: 17px; }
.faq .a p + p { margin-top: 10px; }

/* ── Closing ── */
.cta { text-align: center; padding: 72px 0 88px; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 68px); margin-bottom: 28px; line-height: 1; }
.cta p { color: var(--muted); margin-top: 24px; font-size: 17px; }

/* ── Footer ── */
.footer {
  display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between;
  padding-top: 28px; padding-bottom: 56px; font-size: 15px; font-weight: 600; color: var(--muted);
  border-top: 2px solid var(--line);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ── Text pages: support, privacy, press ── */
.page { max-width: 820px; margin: 0 auto; padding: 48px 24px 88px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 64px); margin-bottom: 16px; }
.page-head p { font-size: 20px; color: var(--muted); }
.page section { margin-top: 56px; }
.page h2 { font-size: clamp(1.7rem, 3.5vw, 36px); margin-bottom: 16px; }
.page p, .page li, .page dd { font-size: 18px; line-height: 1.65; color: #D7D9DE; }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 1.2em; margin: 14px 0; }
.page li + li { margin-top: 8px; }
.page strong { color: var(--text); }
.page code { font-size: 0.92em; background: var(--panel); padding: 2px 6px; border-radius: 6px; }
.updated { margin-top: 8px; font-size: 16px !important; }
.box { background: var(--ground-raised); border: 1px solid var(--gold-soft); border-radius: 28px; padding: 32px; }
.box h2 { margin-bottom: 10px; }
.email { font-family: var(--display); font-weight: 600; font-size: 26px; text-decoration: none; }
.fix dt { font-family: var(--display); font-weight: 600; font-size: 23px; color: var(--gold); margin-top: 32px; }
.fix dd { margin: 10px 0 0; }
.sheet { display: grid; grid-template-columns: 11em 1fr; gap: 0; margin: 0; }
.sheet dt, .sheet dd { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.sheet dt { font-weight: 800; color: var(--text); padding-right: 16px; }
.copy { background: var(--ground-raised); border-left: 4px solid var(--gold); border-radius: 0 16px 16px 0; padding: 20px 24px; }
.length { font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 10px; }
.icon-row { display: flex; gap: 24px; align-items: center; }
.icon-row img { width: 96px; height: 96px; flex: none; }

/* ── Narrow screens ── */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch { grid-template-columns: 1fr; gap: 32px; }
  .watch figure { justify-self: center; }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 26px; }
  .nav-links { gap: 16px; }
  .nav-links .hide-narrow { display: none; }
  .nav-links .btn-pill { padding: 10px 18px; font-size: 16px; }
  .hero { padding-top: 24px; }
  .lede { font-size: 19px; }
  .devices { padding: 0 24px; margin-top: 48px; }
  .device-ipad { width: 86%; border-radius: 22px; padding: 8px; }
  .device-ipad img { border-radius: 14px; }
  .device-iphone { border-radius: 24px; padding: 5px; width: 36%; bottom: -24px; }
  .device-iphone img { border-radius: 19px; }
  .chip { transform: scale(0.6); }
  .chip-tide { left: -14px; }
  .chip-ember { left: -10px; }
  .chip-iris { right: calc(0.14 * (100% - 48px) - 5px); top: 10px; }
  .band { padding: 72px 0 64px; }
  .sub { font-size: 18px; margin-bottom: 32px; }
  .steps, .modes { grid-template-columns: 1fr; }
  .jack { padding: 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .mode { padding: 28px; }
  .mode h3 { font-size: 28px; }
  .hero h1 br { display: none; }
  .price-box { padding: 28px; border-radius: 28px; }
  .price { flex-direction: column; align-items: flex-start; gap: 4px; }
  .price-amt { font-size: 28px; }
  table { font-size: 15px; }
  th, td { padding-right: 10px; }
  .faq details { padding: 0 18px; }
  .page { padding: 32px 16px 64px; }
  .sheet { grid-template-columns: 1fr; }
  .sheet dd { border-top: 0; padding-top: 0; }
  .box { padding: 24px; }
}
@media (max-width: 400px) {
  .brand span { font-size: 22px; }
  .nav-links .btn-pill { padding: 9px 14px; font-size: 15px; }
}
