/* Pinmap public site.
   Palette and type taken from pinmap/src/constants/theme.ts so the web pages
   read as the same product as the app: warm cream paper, espresso ink, navy for
   anything actionable, Cormorant Garamond over Inter. */

:root {
  --paper:     #F7F1DE;
  --surface:   #FCF8EC;
  --line:      #E7DEC4;
  --ink:       #4E220F;
  --ink-soft:  #7A5641;
  --muted:     #978F66;
  --navy:      #0A2947;
  --brick:     #A72703;
  --orange:    #EF6905;

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--navy);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Header and footer ───────────────────────────────────────────────────── */

header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  max-width: 62rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.brand .mark {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  flex: none;
}
.brand .mark svg { display: block; width: 100%; height: 100%; }
.brand .wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}
header.site nav a { text-decoration: none; color: var(--ink-soft); }
header.site nav a:hover { color: var(--navy); text-decoration: underline; }

footer.site {
  max-width: 62rem;
  margin: 4rem auto 0;
  padding: 1.5rem 1rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site p { margin: 0.35rem 0; }

/* ── Documents ───────────────────────────────────────────────────────────── */

main { padding: 0 1rem; }

.doc {
  max-width: var(--measure);
  margin: 3rem auto 0;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.doc .meta,
.landing .meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

.doc .note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  padding: 0.85rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

.doc h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.doc h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2rem 0 0.5rem;
  color: var(--ink);
}

/* Clause numbers sit above their heading and are the link target, so any
   clause can be cited by URL — "see 8.4" becomes something you can send. */
.doc .anchor {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.doc .anchor:hover { color: var(--orange); }
.doc h2 .anchor { color: var(--orange); }

.doc p { margin: 0 0 1.1rem; }
.doc ul { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.5rem; }

:target {
  scroll-margin-top: 1.5rem;
  animation: flash 2s ease-out;
}
@keyframes flash {
  from { background: rgba(239, 105, 5, 0.14); }
  to   { background: transparent; }
}

/* ── Contents ────────────────────────────────────────────────────────────── */

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 0 0 3rem;
}
.toc h2 {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
}
.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  columns: 2;
  column-gap: 2rem;
}
.toc li { margin-bottom: 0.3rem; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

@media (max-width: 34rem) {
  .toc ol { columns: 1; }
}

/* ── Landing and deletion ────────────────────────────────────────────────── */

.landing {
  max-width: 38rem;
  margin: 3rem auto 0;
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.cards { list-style: none; margin: 0 0 2rem; padding: 0; }
.cards li { margin-bottom: 0.75rem; }
.cards a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cards a:hover { border-color: var(--orange); transform: translateY(-1px); }
.cards strong {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--navy);
}
.cards span { display: block; font-size: 0.9rem; color: var(--ink-soft); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.5rem;
  margin: 0 0 1.5rem;
}
.panel.quiet { background: transparent; }
.panel h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.panel h2 + h2 { margin-top: 1.5rem; }
.panel p { margin: 0 0 0.9rem; }
.panel ul { margin: 0 0 0.9rem; padding-left: 1.25rem; }
.panel li { margin-bottom: 0.45rem; }
.panel > :last-child { margin-bottom: 0; }

.fineprint { font-size: 0.85rem; color: var(--muted); }

/* ── Form ────────────────────────────────────────────────────────────────── */

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

input[type="email"],
input[type="password"] {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px, so iOS does not zoom on focus */
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
}
input[type="email"]:focus,
input[type="password"]:focus { border-color: var(--navy); }

label.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
}
label.check input {
  flex: none;
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--brick);
}

button.danger {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--brick);
  border: 0;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
button.danger:hover:not(:disabled) { opacity: 0.9; }
button.danger:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.status { margin: 0.9rem 0 0; font-size: 0.9rem; min-height: 1.4em; color: var(--ink-soft); }
.status.bad { color: var(--brick); font-weight: 500; }

form.done h2 { margin-top: 0; }

@media print {
  header.site nav, .toc, .skip { display: none; }
  body { background: #fff; }
  .doc { max-width: none; }
}

/* ── Home page (6 Oct 2026) ─────────────────────────────────────────────── */

.home { max-width: 62rem; margin: 0 auto; }

.home h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
.home h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.35rem; color: var(--ink); }
.home p { color: var(--ink-soft); }

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 2rem;
}
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 4.5rem; }
}
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 3.6rem); margin-bottom: 1rem; color: var(--ink); }
.hero .lede { font-size: 1.1rem; max-width: 32rem; margin: 0 0 1.75rem; }

.button {
  display: inline-block;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
}
.button:hover { background: var(--ink); text-decoration: none; }

/* The map card: a quiet illustration of friends' pins, not a screenshot. */
.hero-map { display: flex; justify-content: center; }
.map-card {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 4 / 5;
  border-radius: 1.75rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 22%, rgba(10, 41, 71, 0.10) 0 18%, transparent 19%),
    linear-gradient(115deg, transparent 47%, rgba(10, 41, 71, 0.07) 47% 53%, transparent 53%),
    linear-gradient(25deg, transparent 58%, rgba(78, 34, 15, 0.06) 58% 61%, transparent 61%),
    linear-gradient(160deg, transparent 30%, rgba(78, 34, 15, 0.06) 30% 32%, transparent 32%),
    var(--surface);
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(78, 34, 15, 0.25);
  overflow: hidden;
}
.map-card .pin { position: absolute; width: 1.6rem; height: 2.1rem; filter: drop-shadow(0 4px 4px rgba(78, 34, 15, 0.2)); }
.map-card .pin svg { width: 100%; height: 100%; display: block; }
.map-card .p1 { left: 22%; top: 28%; }
.map-card .p2 { left: 58%; top: 40%; width: 2rem; height: 2.6rem; }
.map-card .p3 { left: 34%; top: 60%; }
.map-card .p4 { left: 72%; top: 68%; }
.map-card .p5 { left: 14%; top: 76%; }
.map-chip {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--ink);
  box-shadow: 0 0.5rem 1rem -0.5rem rgba(78, 34, 15, 0.25);
  white-space: nowrap;
}
.map-chip.c1 { left: 40%; top: 30%; }
.map-chip.c2 { left: 8%; top: 52%; }
.map-chip .gem { color: var(--orange); }

.how, .features, .about { padding: 3rem 0 0; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 46rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
}
.steps .n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.steps p, .feature p { margin: 0; font-size: 0.95rem; }

.features { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { border-top: 2px solid var(--orange); padding-top: 1rem; }

.about { max-width: var(--measure); }
.about .links { font-size: 0.9rem; }

@media (max-width: 30rem) {
  header.site nav { gap: 0.9rem; font-size: 0.85rem; }
  .map-chip { font-size: 0.72rem; }
}
