/* Lantern (the calendar app): shared styles for /lantern, /lantern/privacy
   and /lantern/support. The palette, type and buttons follow the studio
   landing page (../index.html). The site is dark-only; so is this. */

:root {
  --charcoal-0: #09090b;
  --charcoal-1: #111114;
  --charcoal-2: #17171b;
  --charcoal-3: #1f1f24;
  --charcoal-4: #2a2a30;
  --stone: #3a3a42;
  --stone-light: #55555f;
  --bone: #d9d5cc;
  --bone-muted: #a09a8e;
  --ember: #ff7a18;
  --ember-deep: #c2410c;
  --ember-glow: #ffb347;
  --ember-core: #ffd27a;
  --steel: #6ea8c4;
  --late: #e5674e;
  --gutter: 48px;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

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

html {
  background: var(--charcoal-0);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100vh;
  color: var(--bone);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: transparent; /* html carries the charcoal; the glow sits between */
}
/* The mine's light: a warm glow top left, a deeper one bottom right, fixed to
   the screen (a pseudo-element, since iOS ignores background-attachment). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 122, 24, 0.10), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(40, 30, 20, 0.45), transparent 60%);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--ember-glow); text-decoration: none; border-bottom: 1px solid rgba(255, 179, 71, 0.35); }
a:hover { color: var(--ember-core); border-bottom-color: var(--ember-core); }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ember);
  color: var(--charcoal-0);
  font-family: var(--mono);
  font-size: 12px;
  border: 0;
}
.skip:focus { top: 12px; color: var(--charcoal-0); }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ NAV ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0.92), rgba(9, 9, 11, 0.6));
  border-bottom: 1px solid rgba(42, 42, 48, 0.6);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand:hover { color: var(--ember-glow); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  border: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ember-glow); }

/* ============ TYPE ============ */
.eyebrow, .section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--ember);
  flex: none;
}
.section-label { font-size: 11px; }
.section-label .num { color: var(--bone-muted); }

h1, h2 { font-weight: 300; letter-spacing: -0.025em; }
h1 em, h2 em {
  font-style: normal;
  font-weight: 500;
  color: var(--ember-glow);
}
h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.06;
  max-width: 22ch;
  margin-bottom: 48px;
}
h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }

.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  background: transparent;
  color: inherit;
  line-height: 1.2;
}
.btn-primary {
  background: var(--ember);
  color: var(--charcoal-0);
  border-color: var(--ember);
}
.btn-primary:hover {
  background: var(--ember-glow);
  border-color: var(--ember-glow);
  color: var(--charcoal-0);
  box-shadow: 0 0 30px rgba(255, 179, 71, 0.45);
}
.btn-ghost {
  color: var(--bone);
  border-color: var(--charcoal-4);
}
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ============ SECTIONS ============ */
.band {
  padding: 112px 0;
  border-top: 1px solid var(--charcoal-3);
}

/* ============ HERO ============ */
.hero {
  padding: 96px 0 112px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.app-id {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.app-id img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 40px rgba(255, 122, 24, 0.18);
}
.app-id .name { font-size: 22px; font-weight: 500; line-height: 1.2; }
.app-id .by { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--bone-muted); }
.tagline {
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.tagline em {
  font-weight: 600;
  text-shadow: 0 0 40px rgba(255, 122, 24, 0.4);
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--bone-muted);
  font-weight: 300;
  max-width: 50ch;
  margin-bottom: 40px;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.fine {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-muted);
}

.trail-art {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(255, 122, 24, 0.12));
}
.trail-art text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}
@media (prefers-reduced-motion: no-preference) {
  .trail-art .now-halo { animation: breathe 3.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
}
@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.12); }
}

/* ============ FEATURES ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--charcoal-3);
  border: 1px solid var(--charcoal-3);
}
.grid + .grid { border-top: 0; }
.card {
  background: var(--charcoal-1);
  padding: 36px 32px 40px;
  transition: background 0.3s;
}
.card:hover { background: var(--charcoal-2); }
.card .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card .tag svg { width: 16px; height: 16px; flex: none; }
.card h3 { font-size: 22px; margin-bottom: 12px; color: var(--bone); }
.card p { font-size: 15px; line-height: 1.65; color: var(--bone-muted); }
.card p + p { margin-top: 10px; }
.card.big { padding: 44px 36px 48px; }
.card.big h3 { font-size: 26px; }
.card q { color: var(--bone); quotes: "\201C" "\201D"; }

/* ============ SCREENSHOT SLOTS ============ */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.shot { margin: 0; }
.shot-slot {
  aspect-ratio: 1320 / 2868;
  border: 1.5px dashed var(--stone);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 122, 24, 0.08), transparent 60%),
    var(--charcoal-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  color: var(--stone-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.shot-slot.mac { aspect-ratio: 2880 / 1800; border-radius: 12px; }
.shot-slot.ipad { aspect-ratio: 2064 / 2752; border-radius: 18px; }
/* A filled slot: the screenshot, no dashed placeholder edge. */
.shot-slot.filled { border: 1px solid var(--charcoal-3); padding: 0; overflow: hidden; background: var(--charcoal-0); }
.shot-slot img.shot-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.shot figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--bone-muted);
  line-height: 1.5;
}
.shots-wide {
  display: grid;
  /* The Mac's 16:10 beside the iPad's portrait page, at the same height. */
  grid-template-columns: minmax(0, 2.13fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}

/* ============ PRIVACY BAND ============ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.split h2 { margin-bottom: 24px; }
.split .intro { color: var(--bone-muted); font-size: 17px; max-width: 44ch; margin-bottom: 24px; }
.lit-list { list-style: none; }
.lit-list li {
  position: relative;
  padding: 18px 0 18px 36px;
  border-bottom: 1px solid var(--charcoal-3);
  color: var(--bone);
  font-size: 16px;
}
.lit-list li:first-child { border-top: 1px solid var(--charcoal-3); }
.lit-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 25px;
  width: 14px;
  height: 16px;
  background: var(--ember);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  filter: drop-shadow(0 0 6px rgba(255, 122, 24, 0.7));
}
.lit-list li span { display: block; color: var(--bone-muted); font-size: 14px; margin-top: 4px; }

/* ============ PRICE ============ */
.price-card {
  border: 1px solid var(--charcoal-4);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 122, 24, 0.14), transparent 65%),
    var(--charcoal-1);
  padding: 48px;
  max-width: 760px;
}
.price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}
.price-now {
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ember-glow);
  text-shadow: 0 0 40px rgba(255, 122, 24, 0.35);
}
.price-then {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-muted);
}
.price-then strong { color: var(--bone); font-weight: 500; }
.price-card p { color: var(--bone-muted); font-size: 16px; max-width: 54ch; margin: 20px 0 32px; }
.price-card p strong { color: var(--bone); font-weight: 500; }
.price-card p.price-promise {
  margin: 24px 0 0;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--bone);
}
.price-card p.price-promise em { font-style: normal; font-weight: 500; color: var(--ember-glow); }
.price-card p.fine { font-size: 11px; margin: 20px 0 0; max-width: none; }

/* ============ DOCUMENT PAGES (privacy, support) ============ */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px var(--gutter) 40px;
}
.doc h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  margin-bottom: 20px;
}
.doc .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-muted);
  margin-bottom: 40px;
}
.doc .summary {
  border: 1px solid var(--charcoal-4);
  border-left: 2px solid var(--ember);
  background: var(--charcoal-1);
  border-radius: 6px;
  padding: 20px 22px;
  margin-bottom: 56px;
  font-size: 17px;
}
.doc section { margin-bottom: 44px; }
.doc h2 {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ember-core);
  margin-bottom: 14px;
  max-width: none;
}
.doc p, .doc li { font-size: 16px; color: var(--bone); }
.doc p + p { margin-top: 12px; }
.doc .muted { color: var(--bone-muted); }
.doc .scope { margin-bottom: 44px; }
.doc ul { list-style: none; margin: 12px 0; }
.doc ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.doc ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--ember);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(255, 122, 24, 0.6);
}
.doc strong { font-weight: 600; }
.doc .lede-doc { color: var(--bone-muted); font-size: 18px; font-weight: 300; max-width: 52ch; margin-bottom: 48px; }

/* FAQ */
.faq details {
  border-top: 1px solid var(--charcoal-3);
}
.faq details:last-of-type { border-bottom: 1px solid var(--charcoal-3); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: 17px;
  font-weight: 500;
  color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ember);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--ember-glow); }
.faq .answer { padding: 0 0 24px; }
.faq .answer p, .faq .answer li { color: var(--bone-muted); font-size: 16px; }
.faq .answer strong { color: var(--bone); font-weight: 500; }

/* ============ FORM ============ */
.doc section.feedback { margin-top: 72px; }
.doc .intro-form { margin-bottom: 24px; }
.form-card {
  border: 1px solid var(--charcoal-4);
  background: var(--charcoal-1);
  border-radius: 8px;
  padding: 36px;
}
.field { margin-bottom: 26px; }
.label, .field legend {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 10px;
}
.label .opt { color: var(--bone-muted); letter-spacing: 0.08em; text-transform: none; font-family: 'Inter', sans-serif; font-size: 13px; margin-left: 6px; }
.hint { font-size: 13px; color: var(--bone-muted); margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; }
.hint .count { font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.hint .count.near { color: var(--ember-glow); }
fieldset { border: 0; min-width: 0; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice label {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 16px 16px;
  border: 1px solid var(--charcoal-4);
  border-radius: 6px;
  background: var(--charcoal-0);
  cursor: pointer;
  font-size: 15px;
  color: var(--bone);
  transition: border-color 0.2s, background 0.2s;
}
.choice label .hex {
  width: 16px;
  height: 18px;
  flex: none;
  background: var(--stone);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background 0.2s, filter 0.2s;
}
.choice label:hover { border-color: var(--stone-light); }
.choice input:checked + label {
  border-color: var(--ember);
  background: rgba(255, 122, 24, 0.07);
}
.choice input:checked + label .hex {
  background: var(--ember);
  filter: drop-shadow(0 0 6px rgba(255, 122, 24, 0.8));
}
.choice input:focus-visible + label {
  outline: 2px solid var(--ember-glow);
  outline-offset: 3px;
}

.input, .textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  color: var(--bone);
  background: var(--charcoal-0);
  border: 1px solid var(--charcoal-4);
  border-radius: 6px;
  padding: 13px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--stone-light); }
.input:hover, .textarea:hover { border-color: var(--stone); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.22);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--late); }
fieldset[aria-invalid="true"] .choice label { border-color: var(--late); }
p.error-text { color: #f29a86; font-size: 14px; margin-top: 8px; }
p.error-text:empty { display: none; }

p.sent-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 28px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--charcoal-4);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bone-muted);
}
p.sent-with[hidden] { display: none; }
.sent-with strong { color: var(--bone); font-weight: 500; letter-spacing: 0.04em; }
.linkish {
  font: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 179, 71, 0.35);
  color: var(--ember-glow);
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.08em;
}
.linkish:hover { color: var(--ember-core); }

/* The honeypot: off-screen for people, there for bots. */
.trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.form-actions .note { font-size: 13px; color: var(--bone-muted); }

.alert {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 6px;
  border: 1px solid rgba(229, 103, 78, 0.5);
  background: rgba(229, 103, 78, 0.08);
  font-size: 15px;
}
.alert[hidden] { display: none; }

.thanks { text-align: center; padding: 24px 8px; }
.thanks[hidden] { display: none; }
.thanks .lit {
  width: 44px;
  height: 50px;
  margin: 0 auto 24px;
  background: var(--ember);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  filter: drop-shadow(0 0 16px rgba(255, 122, 24, 0.8));
}
.thanks h3 { font-size: 26px; font-weight: 400; margin-bottom: 12px; outline: none; }
.thanks p { color: var(--bone-muted); max-width: 44ch; margin: 0 auto 24px; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--charcoal-3);
  margin-top: 40px;
  padding: 32px 0 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-light);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.site-footer a { color: var(--bone-muted); border: 0; }
.site-footer a:hover { color: var(--ember-glow); }
.site-footer .studio { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .studio img { width: 20px; height: 20px; object-fit: contain; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .trail-art { max-width: 360px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav-links .wide { display: none; }
  .nav-links { gap: 18px; }
  .band { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .grid { grid-template-columns: 1fr; }
  .card, .card.big { padding: 28px 22px 32px; }
  .shots { gap: 16px; }
  .shots-wide { grid-template-columns: 1fr; gap: 16px; }
  .shot-slot { border-radius: 20px; }
  .price-card { padding: 32px 22px; }
  .doc { padding-top: 48px; }
  .form-card { padding: 24px 18px; }
  .choices { grid-template-columns: 1fr; }
  .btn { padding: 15px 18px; letter-spacing: 0.1em; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .brand span.long { display: none; }
}
