/* Well Spotted's site: the app's Daylight and Dusk (wellspotted-app/lib/ui/design/palette.dart),
   Fraunces for the moments, Inter for reading, JetBrains Mono for what is read off an instrument. */

:root {
  --page: #F4F3EF;
  --card: #FFFFFF;
  --raised: #ECEAE4;
  --border: #E2DFD7;
  --ink: #15161A;
  --muted: #64625D;
  --faint: #9B9990;
  --gold: #C98A0B;
  --gold-tint: #FBF1DC;
  --common: #8F8D86;
  --uncommon: #15924A;
  --rare: #2461DB;
  --very-rare: #7339E2;
  --exceptional: #D27A06;
  --shadow: 0 18px 50px rgba(21, 22, 26, .12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0B0D11;
    --card: #14171D;
    --raised: #1C2028;
    --border: #272C35;
    --ink: #EEF0F3;
    --muted: #9BA1AB;
    --faint: #656C77;
    --gold: #F2B33D;
    --gold-tint: #2A2212;
    --common: #79808B;
    --uncommon: #4ADE80;
    --rare: #60A5FA;
    --very-rare: #A78BFA;
    --exceptional: #FBBF24;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }

h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -.01em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
.eyebrow, .mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow { color: var(--gold); margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.sub { color: var(--muted); max-width: 40em; margin: 14px 0 0; }

/* Header and footer */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 Fraunces, Georgia, serif; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.brand i { font-weight: 400; }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
footer { border-top: 1px solid var(--border); margin-top: 96px; padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
footer p { margin: 0; }
footer .credits { flex-basis: 100%; color: var(--faint); }
@media (max-width: 560px) { .top nav .hide-sm { display: none; } }

/* Home */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 72px 0 24px; }
.hero h1 { margin-bottom: 22px; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 15px; }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; } }
.hero > * { min-width: 0; }

.phone { position: relative; border-radius: 30px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--card); }
.phone img { width: 100%; height: auto; }
.framed { position: relative; padding: 18px; max-width: 400px; margin-inline: auto; }
.framed::before, .framed::after, .framed > .c1, .framed > .c2 { content: ""; position: absolute; width: 42px; height: 42px; border: 4px solid var(--gold); }
.framed::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.framed::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.framed > .c1 { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.framed > .c2 { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

.block { padding: 112px 0 0; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* The rarity scale: the app's marks, nothing else. */
.scale { list-style: none; padding: 0; margin: 40px auto 26px; display: flex; justify-content: center; gap: clamp(14px, 4vw, 44px); flex-wrap: wrap; }
.scale li { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; min-width: 72px; }
.marks { display: flex; gap: 3px; height: 30px; align-items: center; }
.marks svg { width: 26px; height: 26px; display: block; }
.marks .on svg { fill: currentColor; }
.marks .off svg { fill: none; stroke: var(--faint); stroke-width: 1.6; }
.marks.gem svg { width: 34px; height: 34px; fill: currentColor; }
.scale .l-common, .mk.l-common { color: var(--common); }
.scale .l-uncommon, .mk.l-uncommon { color: var(--uncommon); }
.scale .l-rare, .mk.l-rare { color: var(--rare); }
.scale .l-very-rare, .mk.l-very-rare { color: var(--very-rare); }
.scale .l-exceptional, .mk.l-exceptional { color: var(--exceptional); }

/* Three points, no pictures. */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.point .icon { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.point p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 760px) { .points { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Airports: ten to try, the rest by country. */
.flag { width: 20px; height: 20px; border-radius: 50%; flex: none; display: inline-block; vertical-align: -4px; }
button { font: inherit; color: inherit; }
.chips { list-style: none; padding: 0; margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); cursor: pointer; font-size: 15px; transition: border-color .15s, transform .15s; }
.chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.chip b { font: 600 13px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .04em; }
.every { margin: 28px auto 0; max-width: 900px; text-align: left; }
.every summary { cursor: pointer; text-align: center; color: var(--gold); font-weight: 600; list-style: none; }
.every summary::-webkit-details-marker { display: none; }
.every[open] summary { margin-bottom: 18px; }
.every > div { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 6px 24px; }
.country { padding: 14px 0; border-bottom: 1px solid var(--border); }
.country:last-child { border-bottom: 0; }
.country h3 { font: 600 16px/1.2 Inter, system-ui, sans-serif; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.country p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ap { background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--muted); font-size: 15px; text-align: left; }
.ap:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ap[data-preview] { color: var(--ink); font-weight: 600; }

/* The preview: the app's feed in a sheet. */
.sheet { width: min(560px, 100vw - 24px); max-height: min(88vh, 900px); padding: 0; border: 1px solid var(--border); border-radius: 24px; background: var(--page); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(11, 13, 17, .45); backdrop-filter: blur(2px); }
.sheet.small { width: min(440px, 100vw - 24px); }
@media (max-width: 560px) { .sheet, .sheet.small { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92vh; border-radius: 22px 22px 0 0; border-bottom: 0; } }
.pv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 12px; }
.pv-head .mono { color: var(--faint); font-size: 11px; margin: 0 0 6px; }
.pv-head h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.pv-head h2 .flag { width: 24px; height: 24px; }
.pv-name { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 4px; }
.pv-clock { display: inline-flex; align-items: center; gap: 5px; font: 500 13px "JetBrains Mono", ui-monospace, monospace; color: var(--muted); white-space: nowrap; }
.pv-clock svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.close { background: var(--card); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.pv-filter { display: flex; gap: 8px; padding: 0 20px 14px; border-bottom: 1px solid var(--border); }
.pv-filter button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-size: 14px; }
.pv-filter button[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.pv-rows { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.pv-row { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--border); cursor: default; }
.pv-row[tabindex] { cursor: pointer; }
.pv-row.lv-rare { background: color-mix(in srgb, var(--rare) 7%, transparent); }
.pv-row.lv-very-rare { background: color-mix(in srgb, var(--very-rare) 7%, transparent); }
.pv-row.lv-exceptional { background: color-mix(in srgb, var(--exceptional) 8%, transparent); }
.pv-row.lv-exceptional::before, .pv-row.lv-exceptional::after { content: ""; position: absolute; inset: 6px; pointer-events: none; border: 1.6px solid var(--exceptional); opacity: .85;
  -webkit-mask: linear-gradient(#000 0 0) top left / 10px 10px no-repeat, linear-gradient(#000 0 0) top right / 10px 10px no-repeat, linear-gradient(#000 0 0) bottom left / 10px 10px no-repeat, linear-gradient(#000 0 0) bottom right / 10px 10px no-repeat;
          mask: linear-gradient(#000 0 0) top left / 10px 10px no-repeat, linear-gradient(#000 0 0) top right / 10px 10px no-repeat, linear-gradient(#000 0 0) bottom left / 10px 10px no-repeat, linear-gradient(#000 0 0) bottom right / 10px 10px no-repeat; }
.pv-row.lv-exceptional::after { display: none; }
.pv-row.cancelled > * { opacity: .45; }
.pv-time { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--border); padding-right: 10px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.pv-time .sched { font-weight: 700; font-size: 15px; }
.pv-time .sched.moved { font-weight: 500; font-size: 12px; color: var(--muted); text-decoration: line-through; }
.pv-time .exp { font-weight: 700; font-size: 15px; }
.pv-time .exp.late { color: #CC3A2F; }
.pv-time .dir { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-top: 3px; }
.pv-time .dir svg { width: 13px; height: 13px; fill: currentColor; }
.pv-time .cam { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.8; margin-top: 4px; }
.pv-main p { margin: 0; }
.pv-title b { font-weight: 600; }
.pv-title .num { font: 12px "JetBrains Mono", ui-monospace, monospace; color: var(--muted); margin-left: 10px; white-space: nowrap; }
.pv-detail { color: var(--muted); font-size: 14px; margin-top: 2px !important; }
.pv-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px !important; }
.mk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.mk .marks { height: 16px; gap: 1px; }
.mk .marks svg { width: 14px; height: 14px; }
.mk .marks.gem svg { width: 16px; height: 16px; }
.mk.l-common .lbl { color: var(--common); font-weight: 400; }
.tag { font: 600 10px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; border: 1px solid currentColor; color: var(--muted); }
.tag.first { color: var(--uncommon); }
.pv-row.lv-rare .tag.first { color: var(--rare); }
.pv-row.lv-very-rare .tag.first { color: var(--very-rare); }
.pv-row.lv-exceptional .tag.first { color: var(--exceptional); }
.tag.bad { color: #CC3A2F; }
.pv-why[hidden] { display: none; }
.pv-why { margin: 10px 0 2px; padding: 10px 12px; list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.pv-foot { margin: 0; padding: 14px 20px 18px; border-top: 1px solid var(--border); background: var(--card); text-align: center; }
.pv-foot p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.pv-foot .soon { margin-top: 0; font-size: 14px; padding: 8px 14px; }
.ga-text { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.store { display: inline-block; margin: 0 6px; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--page); text-decoration: none; font-weight: 600; }

.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Privacy, terms, support */
.page { padding: 56px 0 0; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page .intro { font-size: 19px; color: var(--muted); margin: 18px 0 28px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; margin-bottom: 14px; }
.card h2 { font-size: 22px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 10px; }
@media (max-width: 560px) { .pv-foot .soon { border: 0; background: none; padding: 0; } }
