/* FishCrew web pages. Tokens: BlowyLLC/FishCrew docs/contracts.md §10 and docs/design/tokens.md.
   Light only, like the app. --decor is decoration only, never text. */
:root {
  color-scheme: light;
  --bg: #F1F7F6;
  --water: #9BDBE4;
  --water-deep: #7AD2DE;
  --decor: #66AAB7;
  --navy: #15385E;
  --ink: #070C11;
  --muted: #515D71;
  --white: #FFFFFF;
  --line: #DCE7E8;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", "Noto Serif", "Times New Roman", serif; /* not Georgia: its digits are old-style */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) linear-gradient(180deg, var(--water-deep) 0, var(--water) 150px, var(--bg) 420px) no-repeat;
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--navy); }
[hidden] { display: none !important; }

.page { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 16px; }
.page-wide { max-width: 720px; }

/* The scale is the brand: quarter-inch ticks, every fourth taller. */
.scale {
  display: block;
  height: 10px;
  background-image:
    repeating-linear-gradient(90deg, var(--navy) 0 1.5px, transparent 1.5px 24px),
    repeating-linear-gradient(90deg, var(--navy) 0 1px, transparent 1px 6px);
  background-size: 100% 10px, 100% 5px;
  background-repeat: no-repeat;
  opacity: .55;
}

.brand { padding: 20px 0 14px; }
.wordmark { display: inline-block; color: var(--navy); font-size: 22px; font-weight: 700; letter-spacing: -.3px; text-decoration: none; }
.wordmark .scale { height: 6px; margin-top: 2px; background-size: 100% 6px, 100% 3px; }

.card { background: var(--white); border-radius: 26px; padding: 20px; margin-bottom: 14px; box-shadow: 0 8px 30px rgba(21, 56, 94, .07); }

h1, h2, h3 { color: var(--navy); font-weight: 700; letter-spacing: -.2px; }

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 12px 20px;
  border: 0; border-radius: 999px;
  font: 600 17px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); min-height: 48px; font-size: 16px; }
.btn-soft { background: var(--white); color: var(--navy); border: 1px solid var(--line); min-height: 48px; font-size: 16px; }
.btn-soon { background: var(--bg); color: var(--navy); border: 1px dashed var(--decor); cursor: default; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.foot { padding: 20px 0 32px; color: var(--muted); font-size: 14px; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 8px; }
.foot a { color: var(--navy); }
.foot p { margin: 0; }

/* Invite landing */
.hero { padding: 6px 2px 18px; color: var(--navy); }
.hero .eyebrow { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.hero h1 { margin: 0 0 4px; font-size: 34px; line-height: 1.1; overflow-wrap: anywhere; }
.hero .sub { margin: 0; font-size: 15px; }

.notice h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; }
.notice p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.notice p:last-child { margin-bottom: 0; }

.join .label { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.code-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.code { flex: 1; min-width: 0; font: 700 22px/1.2 var(--mono); color: var(--navy); letter-spacing: .5px; -webkit-user-select: all; user-select: all; }
.copy { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font: 600 14px var(--sans); cursor: pointer; }
.hint { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hint b { color: var(--ink); font-weight: 600; }

.table-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.table-head h2 { margin: 0; font-size: 19px; }
.table-head span { color: var(--muted); font-size: 13px; text-align: right; }
.card > .scale { margin: 10px 0 6px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--bg); }
.row:last-child { border-bottom: 0; }
.place { flex: none; width: 22px; color: var(--navy); font: 700 20px/1 var(--serif); text-align: center; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.who { flex: 1; min-width: 0; }
.who .name { display: block; font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.who .note { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.score { flex: none; color: var(--navy); font: 700 24px/1 var(--serif); text-align: right; }
.score small { display: block; margin-top: 2px; color: var(--muted); font: 400 12px/1 var(--sans); }
.empty { margin: 8px 0 2px; color: var(--muted); font-size: 15px; }

.skeleton { height: 16px; margin: 20px 0; border-radius: 8px; background: var(--bg); }

.species h2 { margin: 18px 2px 6px; font-size: 19px; }
.species-scroll { display: flex; gap: 12px; margin: 0 -16px 14px; padding: 34px 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.species-scroll::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .species-scroll { scrollbar-width: thin; } }
.sp { position: relative; flex: none; width: 164px; min-height: 134px; padding: 54px 14px 14px; border-radius: 26px; scroll-snap-align: start; color: var(--navy); }
.sp.water { background: linear-gradient(180deg, #BFE9EF, #9BDBE4); }
.sp.mint { background: linear-gradient(180deg, #D9F4E4, #BDE9CF); }
.sp.butter { background: linear-gradient(180deg, #FFF3C9, #FFE8A6); }
.sp img { position: absolute; left: 6px; top: -30px; width: 152px; height: auto; pointer-events: none; }
.sp .sp-name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.sp .sp-len { font: 700 30px/1.15 var(--serif); }
.sp .sp-who { font-size: 13px; overflow-wrap: anywhere; line-height: 1.25; }

.android { background: #D3EEF3; color: var(--navy); }
.android h2 { margin: 0 0 4px; font-size: 17px; }
.android p { margin: 0; font-size: 15px; color: var(--navy); }

/* Privacy, terms, support */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.tabs a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.doc { padding: 24px 20px; }
.doc h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.12; }
.doc h2 { margin: 28px 0 8px; font-size: 19px; line-height: 1.25; }
.doc h3 { margin: 18px 0 4px; font-size: 16px; }
.doc p, .doc li { color: #26313D; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 7px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.callout { margin: 16px 0; padding: 14px 16px; border-radius: 22px; background: #D3EEF3; }
.callout p { margin: 0; color: var(--navy); }

@media (min-width: 700px) {
  .doc { padding: 36px 40px; }
  .hero h1 { font-size: 40px; }
}
