/* Corkboard — thecorkboard.app
   Palette and type mirror the iOS app's default "Village" theme (ThemeSpec.swift). */

:root {
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --primary: #2D6A4F;
  --primary-dark: #22523D;
  --primary-light: #B7E4C7;
  --primary-faded: #E8F5EE;
  --accent: #E07A5F;
  --accent-light: #FBE8E3;
  --text: #1A1A1A;
  --text-2: #5D646E;
  --text-3: #6F7680;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --available: #10B981;
  --maybe: #F59E0B;
  --cork: #C89B5C;
  --cork-dark: #A97E43;
  --shadow: 0 1px 2px rgba(26, 26, 26, .05), 0 8px 24px rgba(26, 26, 26, .06);
  --shadow-lg: 0 2px 4px rgba(26, 26, 26, .06), 0 24px 60px rgba(26, 26, 26, .14);
  --radius: 16px;
  --serif: "Abhaya Libre", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose a, .lede a, .callout a, .faq details p a, .form-actions a, .form-msg a, .notfound p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; color: var(--text); letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 2.85rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
.lede { font-size: 1.2rem; color: var(--text-2); line-height: 1.55; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.muted { color: var(--text-2); }
.small { font-size: .92rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.privacy-band :focus-visible { outline-color: #fff; }
[id] { scroll-margin-top: 84px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  font-family: var(--sans); line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(45, 106, 79, .22); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--card); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--primary-faded); }
.btn-ghost { background: transparent; color: var(--primary); padding: 10px 14px; }
.btn-ghost:hover { background: var(--primary-faded); }
.btn-lg { padding: 17px 28px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 800; font-size: 1.45rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); font-weight: 500; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav-links a:hover { color: var(--text); background: var(--border-light); text-decoration: none; }
.nav-cta { margin-left: 8px; padding: 10px 18px; font-size: .95rem; }
.nav-links a.nav-cta { color: #fff; background: var(--primary); font-weight: 600; }
.nav-links a.nav-cta:hover { color: #fff; background: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 16px 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; align-self: flex-start; }
  /* Pages without a toggle (404, thanks) keep a simple inline nav */
  .nav-links.nav-static { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; background: none; border: 0; padding: 0; box-shadow: none; }
  .nav-links.nav-static .nav-cta { margin: 0 0 0 8px; }
}

/* Cork texture (SVG turbulence, no image file needed) */
.cork {
  position: relative;
  background-color: var(--cork);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.40  0 0 0 0 0.20  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(80,50,10,.22), transparent 55%);
}
.cork::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset 0 2px 12px rgba(0,0,0,.12);
  border-radius: inherit;
}

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { max-width: 34rem; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .95rem; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--available); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
@media (max-width: 900px) {
  .hero { padding: 44px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* The board: cork panel with a pinned phone */
.board {
  border-radius: 26px; padding: 34px 28px 30px; box-shadow: var(--shadow-lg);
  display: flex; justify-content: center; position: relative; transform: rotate(0.6deg);
}
.pinned { position: relative; transform: rotate(-1.8deg); transition: transform .25s ease; }
.board:hover .pinned { transform: rotate(-0.8deg); }
.pin { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); z-index: 5; width: 34px; height: 46px; filter: drop-shadow(0 6px 5px rgba(0,0,0,.35)); }
.sticky-note {
  position: absolute; right: -22px; bottom: 34px; z-index: 6; width: 150px; padding: 14px 14px 16px;
  background: #FFF3B0; color: #5a4a12; font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-size: .98rem; line-height: 1.3;
  transform: rotate(4deg); box-shadow: 0 8px 18px rgba(0,0,0,.18); border-radius: 3px;
}
.sticky-note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 46px; height: 14px; margin-left: -23px; background: rgba(255,255,255,.55); transform: rotate(-3deg); border: 1px solid rgba(0,0,0,.06); }
@media (max-width: 560px) { .sticky-note { display: none; } .board { padding: 26px 12px 22px; transform: none; } .pinned { transform: rotate(-1deg); } }

/* Phone frame */
.phone {
  width: 300px; height: 672px; border-radius: 46px; background: #0f1113; padding: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px #2a2d31;
  position: relative; z-index: 2;
}
.phone .screen {
  position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column; font-size: 10.5px; line-height: 1.3;
}
.phone .island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #0f1113; border-radius: 20px; z-index: 4; }
.scr-top {
  position: relative; flex: none; height: 250px; color: #fff; padding: 42px 16px 0;
  background: url("img/twilight-900.jpg") center 40% / cover no-repeat;
}
.scr-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 40%, rgba(0,0,0,.35)); }
.scr-top > * { position: relative; z-index: 1; }
.scr-head { display: flex; align-items: flex-start; justify-content: space-between; }
.scr-title { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1; }
.scr-date { font-size: 9.5px; opacity: .9; margin-top: 3px; }
.scr-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #f0c9a8, #b9856b); border: 2px solid rgba(255,255,255,.75); }
.scr-greet { font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.02; margin-top: 18px; }
.weather {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 10px; border-radius: 12px;
  background: rgba(30,30,30,.55); font-size: 8.5px; backdrop-filter: blur(6px);
}
.weather b { font-size: 14px; font-weight: 600; }
.weather .hl { opacity: .85; }
.weather .hr { display: flex; gap: 8px; }
.weather .hr span { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.scr-body { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 0 10px 8px; }
.scr-body.cork { border-radius: 0; }
.scr-body.cork::after { display: none; }
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: 14px; margin-top: -22px;
  box-shadow: 0 4px 14px rgba(0,0,0,.14); padding: 9px 4px; position: relative; z-index: 1;
}
.stat-row div { text-align: center; color: var(--text-2); font-size: 8px; border-left: 1px solid var(--border-light); line-height: 1.2; }
.stat-row div:first-child { border-left: 0; }
.stat-row b { display: block; font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.glance { background: var(--card); border-radius: 14px; margin-top: 10px; padding: 10px 11px 4px; box-shadow: 0 3px 10px rgba(0,0,0,.10); }
.glance h6 { margin: 0 0 8px; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.g-row { display: grid; grid-template-columns: 46px 26px 1fr 10px; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border-light); }
.g-row:first-of-type { border-top: 0; }
.g-when { color: var(--text-2); font-size: 9px; }
.g-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--primary-faded); display: grid; place-items: center; color: var(--primary); }
.g-ic.img-a { background: linear-gradient(135deg, #7fb3d5, #2F6C99); }
.g-ic.img-b { background: linear-gradient(135deg, #cfe3a6, #7ba05b); }
.g-what { border-left: 2.5px solid var(--primary); padding-left: 7px; font-weight: 600; font-size: 10.5px; line-height: 1.15; }
.g-what small { display: block; color: var(--text-2); font-weight: 400; font-size: 8.5px; margin-top: 1px; }
.g-what.b1 { border-color: #22C1DC; }
.g-what.b2 { border-color: #7C3AED; }
.g-chev { color: var(--text-3); font-size: 11px; }
.updates { margin-top: 12px; display: inline-block; background: var(--card); border-radius: 10px; padding: 7px 12px; font-family: var(--serif); font-weight: 700; font-size: 14px; box-shadow: 0 3px 10px rgba(0,0,0,.10); }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mini-card { background: var(--card); border-radius: 12px; padding: 8px 9px; box-shadow: 0 3px 10px rgba(0,0,0,.10); font-size: 8.5px; color: var(--text-2); }
.mini-card b { display: flex; align-items: center; gap: 4px; color: var(--text); font-size: 10px; margin-bottom: 4px; }
.tabbar {
  background: var(--card); border-top: 1px solid var(--border-light); padding: 5px 6px 8px; flex: none;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 36px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text-3); font-size: 6.5px; letter-spacing: .01em; }
.tab svg { width: 14px; height: 14px; }
.tab.on { background: var(--primary-faded); color: var(--primary); border-color: var(--primary-light); font-weight: 600; }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 40rem; margin-bottom: 44px; }
.section-head p { margin-top: 14px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.why { padding-top: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.why-card .num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: #C4573A; line-height: 1; margin-bottom: 10px; }
.why-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.why-card p { color: var(--text-2); font-size: 1rem; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }

/* Feature tiles */
.features { background: var(--card); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 24px; background: var(--bg); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-faded); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.tile .ic svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tile p { color: var(--text-2); font-size: .98rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* RSVP callout */
.rsvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.rsvp-grid ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rsvp-grid li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-faded); color: var(--primary); display: grid; place-items: center; margin-top: 2px; }
.check svg { width: 14px; height: 14px; }
.invite-wrap { display: flex; justify-content: center; }
.invite {
  width: min(380px, 100%); background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: rotate(1.2deg);
}
.invite-hero { height: 150px; background: url("img/afternoon-1600.jpg") center / cover no-repeat; position: relative; }
.invite-hero span { position: absolute; left: 16px; bottom: 12px; color: #fff; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.invite-body { padding: 18px 20px 20px; }
.invite-body .meta { color: var(--text-2); font-size: .95rem; line-height: 1.6; }
.invite-q { margin-top: 14px; font-weight: 600; }
.invite-btns { display: flex; gap: 8px; margin-top: 10px; }
.invite-btns span { flex: 1; text-align: center; padding: 11px 6px; border-radius: 11px; font-weight: 600; font-size: .95rem; }
.ib-yes { background: var(--primary); color: #fff; flex: 1.2 !important; }
.ib-maybe { background: var(--maybe); color: #fff; }
.ib-no { border: 1px solid var(--border); color: var(--text-2); }
.invite-foot { margin-top: 14px; font-size: .8rem; color: var(--text-3); text-align: center; }
@media (max-width: 900px) { .rsvp-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Privacy band */
.privacy-band { background: var(--primary); color: #fff; }
.privacy-band h2, .privacy-band h3 { color: #fff; }
.privacy-band .eyebrow { color: var(--primary-light); }
.privacy-band .lede { color: rgba(255,255,255,.82); }
.pv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.pv { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px 22px 24px; }
.pv h3 { font-size: 1.2rem; margin-bottom: 6px; }
.pv p { color: rgba(255,255,255,.82); font-size: .98rem; }
.privacy-band .btn-secondary { background: #fff; color: var(--primary); border-color: transparent; margin-top: 36px; }
@media (max-width: 720px) { .pv-grid { grid-template-columns: 1fr; } }

/* Waitlist */
.waitlist { padding-bottom: 96px; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 36px; max-width: 640px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .88rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-faded); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.form-msg { border-radius: 12px; font-size: .98rem; }
.form-msg.ok { margin-top: 16px; padding: 14px 16px; background: var(--primary-faded); color: var(--primary-dark); }
.form-msg.err { margin-top: 16px; padding: 14px 16px; background: var(--accent-light); color: #9a3f2a; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 26px 20px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--text-2); font-size: .95rem; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--primary); }
.footer-tag { font-family: var(--serif); font-size: 1.1rem; color: var(--text); }

/* Prose pages (privacy, support) */
.page { padding-top: 56px; padding-bottom: 88px; }
.page-head { max-width: 46rem; margin-bottom: 36px; }
.page-head p { margin-top: 12px; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.7rem; margin: 44px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 26px 0 8px; font-family: var(--sans); font-weight: 700; }
.prose p, .prose li { color: #2f343b; font-size: 1.02rem; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 14px 0 8px; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text-2); font-weight: 600; background: var(--border-light); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.callout { background: var(--primary-faded); border: 1px solid var(--primary-light); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; color: var(--primary-dark); }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 12px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; padding: 3px 0; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--text-2); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-top: 80px; padding-bottom: 80px; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile, .pinned { transition: none; }
}

/* Small screens: a slightly smaller phone so the board never exceeds the viewport (kept last so it wins) */
@media (max-width: 560px) {
  .phone { width: 272px; height: 644px; padding: 9px; border-radius: 42px; }
  .phone .screen { border-radius: 34px; }
  .scr-top { height: 232px; padding-top: 38px; }
  .scr-greet { margin-top: 14px; font-size: 23px; }
}

/* Getting-started steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 46rem; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.step .num { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-faded); color: var(--primary); font-family: var(--serif); font-size: 1.7rem; font-weight: 700; display: grid; place-items: center; }
.step h2 { font-size: 1.35rem; margin: 6px 0 8px; }
.step p { color: #2f343b; font-size: 1.02rem; }
@media (max-width: 480px) { .step { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 16px; } .step .num { width: 44px; height: 44px; font-size: 1.4rem; border-radius: 12px; } }
.prose a.btn { text-decoration: none; }
@media (min-width: 861px) { .two-col > .invite-wrap { position: sticky; top: 96px; } }
