/* ---------- Design tokens (mirrors the Unimail app's colour system, light theme only) ---------- */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-raised: #FFFFFF;
  --surface: #F2F2F2;
  --surface-2: #EFEFEF;
  --ink: #231F20;
  --ink-secondary: #3D3D3D;
  --ink-tertiary: #8F8F8F;
  --border: #E5E5E5;
  --red: #D62129;
  --red-soft: #FDEBEC;
  --gold: #D79A26;
  --gold-soft: #FBF1DE;
  --shadow: 0 1px 2px rgba(35,31,32,.04), 0 8px 24px rgba(35,31,32,.06);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-script: 'Pacifico', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.c-ink { color: var(--ink); }
.c-red { color: var(--red); }
.c-gold { color: var(--gold); }

/* Offsets anchor scroll targets so the sticky header (64px) doesn't cover them */
#top, #features, #faq, #download {
  scroll-margin-top: 84px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-word {
  font-family: var(--font-script);
  font-size: 22px;
  line-height: 1;
}
.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}
.site-nav a {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-secondary);
}
.site-nav a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: .88; }
.btn-small { padding: 9px 18px; font-size: 14px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
}
.store-badge:hover { opacity: .88; }
.store-badge.dark { background: var(--bg); color: var(--ink); border: 1px solid var(--border); }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 15px; }
.store-badge-text small { font-weight: 400; font-size: 11px; opacity: .8; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
/* No second column while the phone mockup is disabled; remove this block if it's restored. */
.hero-inner.no-visual {
  grid-template-columns: 1fr;
  text-align: center;
}
.hero-inner.no-visual .hero-copy { margin: 0 auto; }
.hero-inner.no-visual .hero-sub { margin-left: auto; margin-right: auto; }
.hero-inner.no-visual .cta-row,
.hero-inner.no-visual .social-proof { justify-content: center; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}
.hero-copy h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -.01em;
}
.hl { font-family: var(--font-script); color: var(--gold); font-weight: 400; }
.hero-sub {
  font-size: 18px;
  color: var(--ink-secondary);
  max-width: 46ch;
  margin: 0 0 32px;
}
.social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-secondary);
}
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Hero phone mock ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), transparent 60%),
              radial-gradient(circle at 70% 70%, var(--red-soft), transparent 60%);
  filter: blur(10px);
  z-index: 0;
  border-radius: 50%;
}

/* ---------- iPhone frame ---------- */
.iphone {
  position: relative;
  z-index: 1;
  width: 300px;
  padding: 16px;
  background: linear-gradient(160deg, #3a3a3d, #1c1c1e 55%);
  border-radius: 58px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.08);
}
.btn-side {
  position: absolute;
  background: #2c2c2e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.btn-mute     { left: -3px; top: 108px; width: 3px; height: 26px; border-radius: 2px 0 0 2px; }
.btn-vol-up   { left: -3px; top: 152px; width: 3px; height: 46px; border-radius: 2px 0 0 2px; }
.btn-vol-down { left: -3px; top: 206px; width: 3px; height: 46px; border-radius: 2px 0 0 2px; }
.btn-power    { right: -3px; top: 168px; width: 3px; height: 72px; border-radius: 0 2px 2px 0; }

.iphone-screen {
  position: relative;
  background: var(--bg);
  border-radius: 42px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
}
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px 0;
  font-size: 13px;
  font-weight: 600;
}
.status-icons { display: flex; align-items: center; gap: 5px; color: var(--ink); }
.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
}
.mock-title { font-family: var(--font-script); font-size: 18px; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.mock-search {
  margin: 8px 14px 10px;
  padding: 9px 12px;
  background: var(--surface);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-tertiary);
}
.mock-list { padding: 0 6px 10px; }
.mock-row {
  display: flex;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
.mock-row:last-child { border-bottom: none; }
.avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.row-top b { font-weight: 600; }
.row-top i { font-style: normal; color: var(--ink-tertiary); font-size: 11px; }
.row-subject { font-size: 12px; font-weight: 500; }
.row-snippet {
  font-size: 11.5px;
  color: var(--ink-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-row.unread .row-subject { font-weight: 700; }
.mock-row.unread { position: relative; }
.mock-row.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.home-indicator {
  width: 120px;
  height: 5px;
  border-radius: 3px;
  background: var(--ink);
  opacity: .3;
  margin: 10px auto 8px;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  width: max-content;
  animation: scroll-left 26s linear infinite;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--ink-tertiary);
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Features ---------- */
.features { padding: 96px 0; }
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 12px;
  letter-spacing: -.01em;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--ink-secondary);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 auto 48px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--ink-secondary); font-size: 14.5px; }

/* ---------- Privacy ---------- */
.privacy { padding: 20px 0 96px; }
.privacy-inner {
  background: var(--surface);
  border-radius: var(--radius-l);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.privacy .section-title { text-align: left; margin-bottom: 14px; }
.privacy .section-sub { text-align: left; margin: 0; }
.privacy-list { display: flex; flex-direction: column; gap: 16px; }
.privacy-list li {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}
.privacy-list strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.cta-band-inner {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-l);
  padding: 64px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cta-band-inner h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  margin: 0;
  max-width: 22ch;
}
.cta-band-inner .c-ink { color: var(--bg); }

/* ---------- FAQ ---------- */
.faq { padding-bottom: 110px; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 16px 20px;
  background: var(--bg-raised);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  float: right;
  color: var(--ink-tertiary);
  font-weight: 400;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list p {
  margin: 12px 0 0;
  color: var(--ink-secondary);
  font-size: 14.5px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 32px;
}
.footer-brand .brand-word { font-size: 20px; }
.footer-brand p {
  margin: 6px 0 0;
  color: var(--ink-secondary);
  font-size: 14px;
  max-width: 26ch;
}
.footer-cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
.footer-col { display: flex; flex-direction: column; min-width: 130px; }
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--ink); }
.footer-fine {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin: 0;
}

/* ---------- Pricing ---------- */
.pricing-hero { padding: 72px 0 8px; text-align: center; }
.plans { padding: 40px 0 96px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 32px 28px;
}
.plan-card.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.plan-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.plan-badge.live { background: var(--gold-soft); color: #8a5b0f; }
.plan-badge.soon { background: var(--surface); color: var(--ink-tertiary); }
.plan-name { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.plan-tagline { font-size: 14px; color: var(--ink-secondary); margin: 0 0 24px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.plan-price .amount { font-size: 42px; font-weight: 800; letter-spacing: -.02em; }
.plan-price .unit { font-size: 15px; color: var(--ink-secondary); }
.plan-features { display: flex; flex-direction: column; gap: 12px; margin: 0 0 28px; flex: 1; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}
.plan-features li svg { flex: none; margin-top: 2px; color: var(--gold); }
.plan-card .btn { width: 100%; }
.btn-disabled {
  background: var(--surface);
  color: var(--ink-tertiary);
  cursor: not-allowed;
}
.btn-disabled:hover { opacity: 1; }
.plans-note {
  text-align: center;
  color: var(--ink-secondary);
  font-size: 14.5px;
  margin: 40px auto 0;
  max-width: 60ch;
}
.plans-note a { color: var(--ink); text-decoration: underline; }

/* ---------- Checkout ---------- */
.checkout { padding: 72px 0 110px; }
.checkout-wrap { max-width: 480px; margin: 0 auto; }
.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}
.checkout-back:hover { color: var(--ink); }
.checkout-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 32px;
}
.checkout-card h1 { font-size: 24px; margin: 0 0 6px; }
.checkout-card .checkout-sub { color: var(--ink-secondary); font-size: 14.5px; margin: 0 0 28px; }
.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.checkout-row span:first-child { color: var(--ink-secondary); }
.checkout-row.total {
  border-bottom: none;
  padding-top: 16px;
  font-weight: 700;
  font-size: 16px;
}
.checkout-notice {
  background: var(--surface);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin: 20px 0 24px;
}
.checkout-field { margin: 20px 0; }
.checkout-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}
.checkout-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
}
.checkout-field input:focus {
  outline: none;
  border-color: var(--ink);
}
.checkout-field input:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}
.checkout-card .btn { width: 100%; margin-bottom: 10px; }
.checkout-hint { text-align: center; font-size: 12.5px; color: var(--ink-tertiary); margin: 0; }
.checkout-download {
  text-align: center;
  margin-top: 32px;
}
.checkout-download p { font-size: 13.5px; color: var(--ink-secondary); margin: 0 0 14px; }
.checkout-download .cta-row { justify-content: center; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 110px; }
.legal-header { max-width: 720px; margin: 0 auto 40px; }
.legal-header .eyebrow { text-align: left; }
.legal-header h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; letter-spacing: -.01em; }
.legal-updated { color: var(--ink-tertiary); font-size: 14px; margin: 0; }
.legal-content { max-width: 720px; margin: 0 auto; color: var(--ink-secondary); font-size: 15.5px; line-height: 1.75; }
.legal-content h2 {
  color: var(--ink);
  font-size: 20px;
  margin: 40px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 16px; }
.legal-content ul { margin: 0 0 16px; padding-left: 0; }
.legal-content li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.legal-content a { color: var(--ink); text-decoration: underline; }
.legal-content strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact { padding: 64px 0 110px; }
.contact-grid {
  max-width: 720px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px 20px;
  text-align: center;
}
.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #8a5b0f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-tertiary); margin: 0 0 8px; font-weight: 600; }
.contact-card p { margin: 0; font-size: 15px; }
.contact-card a { color: var(--ink); }
.contact-card a:hover { text-decoration: underline; }
.contact-map { text-align: center; margin-top: 16px; }
.contact-map a { font-size: 13.5px; color: var(--ink-secondary); text-decoration: underline; }
.contact-note {
  max-width: 60ch;
  margin: 40px auto 0;
  text-align: center;
  color: var(--ink-secondary);
  font-size: 14.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .iphone { width: 250px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .privacy-inner { grid-template-columns: 1fr; padding: 32px; }
  .site-nav { display: none; }
  .plan-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; max-width: 360px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
  .cta-band-inner { padding: 44px 24px; }
  .privacy-inner { padding: 24px; }
  .checkout-card { padding: 24px; }
}
