/* Same colours as the app (ShareCodeStatus/Design/Palette.swift). */
:root {
  --background: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #0E1B2C;
  --ink-secondary: #5B6675;
  --line: #E3E7ED;
  --action: #14365F;
  --on-action: #FFFFFF;
  --action-ink: #14365F;
  --brand-green: #6FD359;
  --valid: #0B7A55;
  --soon: #8A5200;
  --soon-soft: #FBF1DF;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0B1320;
    --surface: #152033;
    --ink: #F3F6FA;
    --ink-secondary: #A3AEBD;
    --line: #26354B;
    --action: #2C5C96;
    --action-ink: #CFE0F7;
    --valid: #3DD598;
    --soon: #F5B14C;
    --soon-soft: #33260F;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--action-ink); text-underline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; gap: 16px; font-size: 15px; }
nav.site a { text-decoration: none; }
nav.site a[aria-current="page"] { font-weight: 600; text-decoration: underline; }

/* `.wrap` sets the side padding, so this keeps it and adds top and bottom. */
main.wrap { padding: 40px 16px 56px; }

h1 { font-size: clamp(32px, 7vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.lead { font-size: 20px; color: var(--ink-secondary); max-width: 36em; }
.meta { color: var(--ink-secondary); font-size: 15px; }

.hero { display: flex; flex-direction: column; gap: 20px; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 6px 20px rgb(14 27 44 / 0.18); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--action);
  color: var(--on-action);
  font-weight: 600;
  width: fit-content;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 20px 0 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.card p { margin: 0; color: var(--ink-secondary); font-size: 16px; }

.price { font-size: 28px; font-weight: 700; margin: 4px 0 8px; }
.card ul { margin: 0; color: var(--ink-secondary); font-size: 16px; }

.notice {
  background: var(--soon-soft);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 40px;
}
.notice p:last-child { margin-bottom: 0; }

.prose h2 { font-size: 21px; margin-top: 32px; }
.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 6px;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 44px; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 15px; color: var(--ink-secondary); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
