/* Card Shark website.
   Layout: an aqua hero band with the app icon and sample reminders, then plain sections on a pale ground.
   Colors and the display face (Rubik) come from the logo in brand/. The cartoon look (thick ink outlines,
   hard offset shadows) is kept to the app icon, reminder cards, feature tiles and Will's speech bubble. */

@font-face {
  font-family: 'Rubik';
  src: url('fonts/rubik-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #f5fafd;
  --surface: #ffffff;
  --sea: #d3f1f9;
  --icon-bg: #d3f1f9;
  --fg: #07152b;
  --muted: #46566b;
  --line: #d2e3ee;
  --outline: #07152b;
  --shadow: #07152b;
  --shark: #2476c2;
  --shark-fill: #2f8adf;
  --gold: #fccc36;
  --gold-soft: #fff3c9;
  --mint: #4fc08d;
  --link: #1d68b0;
  --pill: #07152b;
  --pill-fg: #ffffff;

  --display: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 3.6rem);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1426;
    --surface: #111f38;
    --sea: #0f2442;
    --fg: #eaf2fa;
    --muted: #a6b6c8;
    --line: #20324d;
    --outline: #4f77a3;
    --shadow: #03070f;
    --shark: #41b1f2;
    --gold-soft: #3a3016;
    --link: #7cc4f5;
    --pill: #fccc36;
    --pill-fg: #07152b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1426;
  --surface: #111f38;
  --sea: #0f2442;
  --fg: #eaf2fa;
  --muted: #a6b6c8;
  --line: #20324d;
  --outline: #4f77a3;
  --shadow: #03070f;
  --shark: #41b1f2;
  --gold-soft: #3a3016;
  --link: #7cc4f5;
  --pill: #fccc36;
  --pill-fg: #07152b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header: the logo lockup (shark + "CardShark" wordmark), then links */
.top { background: var(--sea); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.brand .mark { width: 46px; height: auto; }
.brand .word { height: 23px; width: auto; }
.top nav { display: flex; gap: 20px; font-weight: 600; font-size: 0.98rem; }
.top nav a { color: var(--fg); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; }

/* Hero */
.hero { background: var(--sea); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-block: 36px 72px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); padding-inline: 2px; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.soon {
  display: inline-flex; align-items: center;
  background: var(--pill); color: var(--pill-fg);
  font-weight: 700; font-size: 1rem;
  padding: 12px 20px; border-radius: 999px;
}
.actions a { font-weight: 600; }

.hero-art { position: relative; min-width: 0; display: grid; justify-items: center; }
.app-icon {
  width: min(290px, 70%); aspect-ratio: 1; max-width: 100%;
  display: grid; place-items: center;
  background: var(--icon-bg); border-radius: 22%;
  border: 4px solid var(--outline); box-shadow: 8px 8px 0 var(--shadow);
  transform: rotate(-4deg);
}
.app-icon img { width: 80%; }
.pings { display: grid; gap: 12px; width: min(380px, 100%); margin-top: -34px; position: relative; }
.ping {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: start;
  background: var(--surface); border: 3px solid var(--outline); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--shadow); padding: 12px 14px;
}
.ping:nth-child(2) { margin-left: 26px; margin-right: -10px; }
.ping .dot { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; border: 2.5px solid var(--outline); background: var(--gold); }
.ping:nth-child(2) .dot { background: var(--shark-fill); }
.ping:nth-child(3) .dot { background: var(--mint); }
.ping b { font-size: 0.92rem; }
.ping time { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.ping p { grid-column: 2 / 4; font-size: 0.95rem; line-height: 1.4; color: var(--muted); }

/* Sections */
section { padding-block: 80px 0; }
.kicker { font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shark); }
.head { display: grid; gap: 10px; max-width: 640px; margin-bottom: 36px; }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--muted); font-size: var(--step-1); }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tile {
  background: var(--surface); border: 3px solid var(--outline); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow); padding: 24px; display: grid; gap: 10px; align-content: start;
}
.tile h3 { font-size: var(--step-2); }
.tile p { color: var(--muted); }
.tile .eg { font-size: 0.92rem; color: var(--fg); background: var(--gold-soft); border-radius: 10px; padding: 8px 12px; justify-self: start; }
.cards-note { margin-top: 28px; color: var(--muted); }

/* Will Shark, the setup guide */
.will { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.will-art { min-width: 0; }
.will-art img { width: min(420px, 100%); margin-inline: auto; }
.will-copy { display: grid; gap: 22px; min-width: 0; }
.will-copy .head { margin-bottom: 0; }
.bubble {
  position: relative; background: var(--surface); border: 3px solid var(--outline); border-radius: 20px;
  box-shadow: 5px 5px 0 var(--shadow); padding: 16px 20px;
  font-family: var(--display); font-weight: 600; font-size: var(--step-1); line-height: 1.35;
}
.bubble::before {
  content: ""; position: absolute; left: -15px; top: 26px; width: 24px; height: 24px;
  background: var(--surface); border-left: 3px solid var(--outline); border-bottom: 3px solid var(--outline);
  transform: rotate(45deg);
}
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0; border-top: 2px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 10px; padding: 12px 2px; border-bottom: 2px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; color: var(--shark); }
.steps li span { color: var(--muted); }

/* Goals */
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.goals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--line); }
.goals li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 2px solid var(--line); }
.goals li span:last-child { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.goals .note { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

/* Chomper */
.chomper { background: var(--sea); margin-top: 80px; padding-block: 72px; }
.fish { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 28px 14px; }
.fish li { flex: 1 1 0; min-width: 120px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.fish img { width: 100%; max-width: 190px; }
.fish li:nth-child(1) img { width: 60%; }
.fish li:nth-child(2) img { width: 68%; }
.fish li:nth-child(3) img { width: 76%; }
.fish li:nth-child(4) img { width: 84%; }
.fish li:nth-child(5) img { width: 92%; }
.fish b { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.fish span { font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
.chomper .note { margin-top: 32px; color: var(--muted); max-width: 60ch; }

/* What it doesn't ask for */
.never { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.never div { border-top: 4px solid var(--outline); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.never b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.never p { color: var(--muted); font-size: 0.97rem; }
.more { margin-top: 28px; }

/* Footer */
footer { margin-top: 96px; border-top: 2px solid var(--line); }
footer .wrap { display: grid; gap: 14px; padding-block: 32px 48px; font-size: 0.92rem; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer .row a { color: var(--fg); font-weight: 600; }
.fine { max-width: 70ch; }

/* Long-form pages (privacy, support) */
.doc { max-width: 720px; padding-block: 48px 0; }
.doc h1 { font-size: var(--step-3); margin-bottom: 12px; }
.doc h2 { font-size: var(--step-2); margin-top: 44px; margin-bottom: 12px; }
.doc h3 { font-size: var(--step-1); margin-top: 28px; margin-bottom: 8px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--muted); }
.doc .short { background: var(--surface); border: 3px solid var(--outline); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--shadow); padding: 20px 24px 8px; margin-top: 28px; }
.doc .short h2 { margin-top: 0; }
.table { overflow-x: auto; margin-bottom: 18px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 2px solid var(--line); }
.doc th { font-family: var(--display); font-weight: 700; }
.doc address { font-style: normal; }

.lost { display: grid; gap: 18px; justify-items: start; padding-block: 72px 0; }
.lost img { width: 180px; }
.lost h1 { font-size: var(--step-3); }

@media (max-width: 860px) {
  .hero .wrap, .goals, .will { grid-template-columns: 1fr; }
  .hero .wrap { padding-block: 20px 56px; gap: 40px; }
  .will-art img { width: min(300px, 80%); }
  .never { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fish li { flex: 0 1 calc(33.33% - 10px); }
}
@media (max-width: 600px) {
  .tiles, .never { grid-template-columns: 1fr; }
  .top nav { gap: 14px; }
  .top nav .hide-sm { display: none; }
  .brand .mark { width: 40px; }
  .brand .word { height: 19px; }
  section { padding-block: 64px 0; }
  .ping:nth-child(2) { margin-left: 14px; margin-right: 0; }
  .bubble::before { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .ping { animation: rise 0.5s ease-out both; }
  .ping:nth-child(2) { animation-delay: 0.12s; }
  .ping:nth-child(3) { animation-delay: 0.24s; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}
