/* Jotter marketing site — "Paper Gallery" language, matching the app exactly.
   Palette from src/constants/theme.ts. Light-only by design. */

:root {
  --bg: #F4F1EC;
  --card: #FFFFFF;
  --card-alt: #EAE6DF;
  --text: #1C1A17;
  --dim: #8A857C;
  --ink: #1C1A17;
  --on-ink: #F7F5F1;
  --accent: #C4552D;
  --chip-bg: #E9E5DE;
  --chip-text: #57534B;
  --border: #E4DFD7;
  --shadow: rgba(28, 26, 23, 0.08);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */
.overline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
a { color: inherit; }

/* ---------- nav ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.mark {
  font-family: var(--serif);
  font-size: 30px;
  text-decoration: none;
  line-height: 1;
}
.mark span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--chip-text);
}
.nav-links a:hover { color: var(--text); }
.pill {
  background: var(--ink);
  color: var(--on-ink) !important;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  text-decoration: none;
}

/* ---------- hero page: everything in one viewport ---------- */
.hero-page { overflow-x: hidden; }
.shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 24px 0;
}
.hero-copy h1 { font-size: clamp(44px, 5.4vw, 68px); margin-bottom: 22px; }
.hero-copy .lede { font-size: 19px; color: var(--chip-text); max-width: 27em; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; align-items: center; flex-wrap: wrap; }
.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  padding: 16px 30px;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 28px var(--shadow);
}
.hero-note { font-size: 13px; color: var(--dim); margin-top: 16px; }

/* waitlist form */
.wl-form { display: flex; gap: 10px; margin-top: 32px; max-width: 460px; }
.wl-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  outline: none;
}
.wl-input:focus { border-color: var(--ink); }
.wl-btn { border: 0; cursor: pointer; font: inherit; font-size: 16px; white-space: nowrap; }
.wl-btn:disabled { opacity: 0.6; cursor: default; }
.wl-done { color: var(--accent); font-weight: 600; }

@media (max-width: 480px) {
  .wl-form { flex-direction: column; }
}

/* ---------- phone mockup ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}
.phone {
  width: min(320px, 78vw);
  aspect-ratio: 9 / 18.5;
  background: var(--ink);
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(28, 26, 23, 0.22);
}
.phone-screen {
  background: var(--bg);
  border-radius: 38px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 14px;
  position: relative;
}
.app-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 6px 12px;
}
.app-mark { font-family: var(--serif); font-size: 24px; }
.app-mark em { font-style: normal; color: var(--accent); }
.app-count {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.app-masonry { display: flex; gap: 10px; flex: 1; }
.app-col { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-col.shifted { margin-top: 22px; }
.pcard {
  border-radius: 16px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  min-height: 96px;
  flex: 1; /* cards share the phone's height so the screen is always full */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 2px 14px var(--shadow);
}
.pcard.tall { min-height: 128px; flex: 1.35; }
.pcard .ghost {
  position: absolute;
  top: -22px;
  right: -4px;
  font-family: var(--serif);
  font-size: 84px;
  line-height: 1;
  opacity: 0.14;
  user-select: none;
}
.pcard .pname { font-family: var(--serif); font-size: 16px; }
.pcard .pmeta {
  font-size: 7px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.75;
}
.app-dock {
  margin-top: 12px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px var(--shadow);
}
.app-dock span { opacity: 0.7; }

/* floating memory notes over the phone */
.float-note {
  position: absolute;
  background: var(--card);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: 0 8px 28px rgba(28, 26, 23, 0.14);
  max-width: 200px;
  line-height: 1.4;
}
.fn-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 3px;
}
.note-a { top: 16%; right: max(0px, calc(50% - 275px)); }
.note-b { bottom: 18%; left: max(0px, calc(50% - 275px)); }

/* ---------- hero footer ---------- */
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 22px;
}
.fine { font-size: 13px; color: var(--dim); }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font-size: 13px; color: var(--chip-text); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* ---------- legal / prose pages ---------- */
.prose { max-width: 44em; padding: 40px 0 80px; }
.prose h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 44px); margin: 16px 0 8px; }
.prose .updated { color: var(--dim); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 40px 0 10px; }
.prose p, .prose li { font-size: 16px; color: var(--chip-text); }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); }

footer:not(.hero-foot) { border-top: 1px solid var(--border); padding: 32px 0 44px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot a { font-size: 14px; color: var(--chip-text); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .shell { min-height: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 20px 0 40px; }
  .hero-copy h1 br { display: none; }
  .nav-links a:not(.pill) { display: none; }
  .note-a { right: -8px; }
  .note-b { left: -8px; }
}
