/* ==========================================================================
   Pastport — getpastport.app
   Warm minimalist. Cream paper, terracotta ink, elegant serif display.
   ========================================================================== */

:root {
  /* Palette — swappable tokens (kept close to the in-app / share-card look) */
  --paper:        #FAF8F5;
  --paper-2:      #F3EEE6;
  --paper-3:      #ECE5D9;
  --card:         #FFFDF9;
  --ink:          #1C1A17;
  --ink-2:        #5C4A3E;
  --ink-muted:    #8E867B;
  --accent:       #FF6B35;
  --accent-dark:  #D14E1A;
  --accent-soft:  #FFE9DE;
  --taupe:        #C7BEAA;
  --line:         rgba(60, 48, 38, 0.12);
  --line-soft:    rgba(60, 48, 38, 0.07);

  --serif: "Fraunces", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1120px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0.16, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: var(--accent-soft); color: var(--ink); }

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

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

.serif { font-family: var(--serif); }
.accent-dot::after { content: "."; color: var(--accent); }

/* Kicker / eyebrow --------------------------------------------------------- */
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.kicker--muted { color: var(--ink-muted); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  background: rgba(250, 248, 245, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  background: rgba(250, 248, 245, 0.88);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 21px;
  letter-spacing: -0.01em; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .glyph {
  width: 26px; height: 26px; color: var(--accent);
  flex: none;
}
.brand .app-icon {
  width: 30px; height: 30px; flex: none;
  border-radius: 7px; /* iOS-style rounded square at nav size */
  box-shadow: 0 1px 3px rgba(28,26,23,0.14), 0 0 0 0.5px rgba(60,48,38,0.12);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  letter-spacing: -0.01em;
  transition: color 180ms var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-weight: 600 !important; color: var(--accent-dark) !important;
}
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ==========================================================================
   Buttons / badges
   ========================================================================== */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px 13px 18px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px;
  font-weight: 500;
  transition: transform 200ms var(--ease-spring), box-shadow 200ms var(--ease);
  box-shadow: 0 6px 22px rgba(28,26,23,0.16);
}
.appstore-badge:hover {
  color: var(--paper); transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(28,26,23,0.22);
}
.appstore-badge:active { transform: translateY(0) scale(0.985); }
.appstore-badge svg { width: 26px; height: 26px; flex: none; }
.appstore-badge .small { font-size: 10.5px; letter-spacing: 0.04em; opacity: 0.72; line-height: 1; display: block; margin-bottom: 3px; }
.appstore-badge .big { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }

.coming-soon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-muted); font-weight: 500;
}
.coming-soon .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,107,53,0.5);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,107,53,0.45); }
  70% { box-shadow: 0 0 0 9px rgba(255,107,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,53,0); }
}
@media (prefers-reduced-motion: reduce) { .coming-soon .dot { animation: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(16px, 2.6vw, 36px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  /* warm paper glow behind globe */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 4%; right: -6%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,209,168,0.42) 0%, rgba(255,209,168,0) 66%);
  filter: blur(6px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 20px 0 22px;
  color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--accent-dark); }
.hero .lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.6; color: var(--ink-2);
  max-width: 30em; margin-bottom: 34px;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.hero-globe {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
}
.hero-globe canvas {
  width: 100% !important; height: 100% !important;
  cursor: grab;
}
.hero-globe .globe-ring {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 1px solid rgba(209,78,26,0.28);
  pointer-events: none;
}
.hero-globe .globe-caption {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted); white-space: nowrap;
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px;
}
.trust-row span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.trust-row svg { width: 16px; height: 16px; color: var(--accent-dark); flex: none; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 620px; margin: 0 auto; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-globe { grid-row: 1; max-width: 420px; margin-bottom: 44px; }
  .hero::before { right: 50%; transform: translateX(50%); top: 0; width: 480px; height: 480px; }
}

/* ==========================================================================
   Section scaffold
   ========================================================================== */
section { position: relative; }
.section-pad { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 14px 0 16px; color: var(--ink);
}
.section-head p { font-size: 18px; color: var(--ink-2); line-height: 1.6; }

.band-paper { background: var(--paper-2); }
.band-ink   { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   Privacy wedge
   ========================================================================== */
.wedge { position: relative; }
.wedge .section-head h2 { color: inherit; }
.wedge .kicker { color: var(--accent); }
.wedge-lede {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 3.2vw, 32px); line-height: 1.36;
  letter-spacing: -0.01em; max-width: 20ch; color: var(--paper);
}
.wedge-lede b { font-style: normal; color: var(--accent); font-weight: 500; }
.wedge-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.compare {
  display: grid; gap: 14px;
}
.compare-card {
  border: 1px solid rgba(250,248,245,0.14);
  border-radius: 16px; padding: 20px 22px;
  background: rgba(250,248,245,0.04);
}
.compare-card.ours {
  border-color: rgba(255,107,53,0.5);
  background: rgba(255,107,53,0.08);
}
.compare-card h3 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(250,248,245,0.6); margin-bottom: 12px;
}
.compare-card.ours h3 { color: var(--accent); }
.compare-card ul { list-style: none; display: grid; gap: 9px; }
.compare-card li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 15.5px; color: rgba(250,248,245,0.86); line-height: 1.45;
}
.compare-card li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.compare-card.ours li svg { color: var(--accent); }
.compare-card.theirs li svg { color: rgba(250,248,245,0.4); }
@media (max-width: 820px) {
  .wedge-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   How it works
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 20px; padding: 30px 28px 32px;
  box-shadow: 0 1px 2px rgba(28,26,23,0.03), 0 14px 30px rgba(28,26,23,0.045);
  transition: transform 300ms var(--ease-spring), box-shadow 300ms var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(28,26,23,0.05), 0 22px 44px rgba(28,26,23,0.08); }
.step .num {
  font-family: var(--serif); font-size: 15px; font-weight: 600;
  color: var(--accent-dark); letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
}
.step .num::before {
  content: ""; width: 30px; height: 1.5px; background: var(--accent); opacity: 0.6;
}
.step .icon {
  width: 42px; height: 42px; margin-bottom: 16px; color: var(--accent-dark);
}
.step h3 {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  letter-spacing: -0.01em; margin-bottom: 9px; color: var(--ink);
}
.step p { font-size: 15.5px; color: var(--ink-2); line-height: 1.58; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 24px 4px;
  font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 2.4vw, 23px);
  letter-spacing: -0.01em; color: var(--ink);
  transition: color 180ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-item .plus {
  flex: none; width: 24px; height: 24px; margin-top: 4px; color: var(--accent-dark);
  transition: transform 320ms var(--ease-spring);
}
.faq-item[open] .plus { transform: rotate(135deg); }
.faq-item .answer {
  padding: 0 4px 26px; font-size: 16.5px; color: var(--ink-2); line-height: 1.66;
  max-width: 62ch;
}
.faq-item .answer p + p { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .faq-item .plus { transition: none; } }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { text-align: center; }
.final-cta h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06;
  letter-spacing: -0.025em; margin-bottom: 22px; color: var(--ink);
  max-width: 16ch; margin-left: auto; margin-right: auto;
}
.final-cta .actions { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 44px;
}
.footer-grid {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 14.5px; color: var(--ink-muted); line-height: 1.6; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 10px; font-weight: 500;
}
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-muted);
}

/* ==========================================================================
   Legal / doc pages (privacy, terms, support)
   ========================================================================== */
.doc { max-width: 740px; margin: 0 auto; padding: clamp(44px, 7vw, 80px) 28px 100px; }
.doc .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 14px;
}
.doc h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(36px, 6vw, 52px); line-height: 1.06; letter-spacing: -0.025em;
  margin-bottom: 14px; color: var(--ink);
}
.doc .effective { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 34px; }
.doc .lede {
  font-family: var(--serif); font-size: clamp(19px, 2.6vw, 23px); line-height: 1.5;
  color: var(--ink-2); margin-bottom: 40px;
  padding: 22px 24px; background: var(--accent-soft);
  border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0;
}
.doc h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.4vw, 30px);
  letter-spacing: -0.015em; margin: 48px 0 14px; color: var(--ink);
}
.doc h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 24px 0 8px; }
.doc p { margin-bottom: 14px; color: var(--ink); }
.doc ul { padding-left: 22px; margin: 12px 0 20px; }
.doc li { margin-bottom: 8px; }
.doc code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--paper-3); padding: 1px 6px; border-radius: 5px;
}
.doc .card {
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
  margin: 16px 0; background: var(--card);
}
.doc .card h3 { margin-top: 0; color: var(--accent-dark); }
.doc .card p:last-child { margin-bottom: 0; }
.doc .do-list li::marker { content: "\2713  "; color: var(--accent-dark); font-weight: 700; }
.doc .dont-list li::marker { content: "\2715  "; color: var(--ink-muted); font-weight: 700; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0 30px; }
.doc .doc-footer { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
.doc .doc-footer a { color: var(--ink-2); }

/* Reveal-on-scroll (progressive; content visible without JS) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }
