/* Rendezspot marketing site
 * Mirrors the iOS app's own design language so the marketing surface and
 * the product feel like the same thing. Brand color comes straight from the
 * app's AccentColor.colorset (coral #E8706A light / #EC8A82 dark), on a warm
 * sand canvas echoing the app icon (a coral beach parasol + glowing sun).
 *
 * Same token + component structure as the sibling Cloudflare-Pages sites
 * (FinderPilot-Web, FeelBite-Web) — re-themed, pricing removed, with phone
 * mock / how-it-works / privacy-mode / coming-soon-badge components added.
 */

:root {
  /* Colors — light (warm coral / sand) */
  --accent-primary:    #BD4B40;   /* accessible deep coral — WCAG AA on cream AND white-on-it (text, links, buttons, focus) */
  --accent-strong:     #A63E34;   /* darker coral — button hover */
  --accent-bright:     #E8706A;   /* app AccentColor — DECORATIVE only (gradients, logo, icon tiles, phone mock) */
  --accent-secondary:  #F2A65A;   /* warm amber (sun) */
  --accent-sun:        #FFC56E;   /* glow highlight */
  --status-success:    #34C759;
  --status-warning:    #FF9500;
  --status-info:       #3D9BE0;

  --bg-window:         #FFFFFF;
  --bg-canvas:         #FBF6EF;   /* warm sand page background */
  --bg-card:           #FFFFFF;
  --bg-row-hover:      #F5EDE2;
  --bg-row-selected:   #FCE9E6;
  --bg-tint-accent:    #FCEAE7;   /* light coral tint */
  --bg-tint-warm:      #FBEFDD;   /* light amber tint */
  --bg-tint-info:      #E8F1FA;

  --text-primary:      #241B18;   /* warm near-black */
  --text-secondary:    #6E625C;
  --text-tertiary:     #756860;   /* AA on cream */
  --text-on-accent:    #FFFFFF;

  --border-hairline:   #ECE1D5;
  --border-control:    #DBCEBF;

  --shadow-card:       0 1px 2px rgba(70, 40, 30, 0.05), 0 10px 28px rgba(120, 70, 50, 0.08);
  --shadow-float:      0 8px 24px rgba(120, 70, 50, 0.16);

  /* Spacing */
  --xs:  4px;  --sm:  8px;  --md:  12px; --lg:  16px;
  --xl:  24px; --xxl: 32px; --xxxl:48px; --xxxxl:64px;

  /* Radius */
  --r-xs: 4px; --r-sm: 6px; --r-card: 12px; --r-lg: 20px; --r-pill: 999px;

  /* Type */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Inter", system-ui, sans-serif;
  --font-mono:
    "SF Mono", "Menlo", "Monaco", "JetBrains Mono", ui-monospace, monospace;

  --container-max: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-primary:  #EC8A82;   /* light coral — AA as text on the dark canvas */
    --accent-strong:   #F09A92;
    --accent-bright:   #EC8A82;   /* decorative */
    --accent-secondary:#F2B36F;
    --accent-sun:      #FFD089;
    --text-on-accent:  #1A1411;   /* near-black — dark text on light-coral buttons in dark mode */

    --bg-window:       #1B1613;
    --bg-canvas:       #141019;   /* warm-tinted charcoal */
    --bg-canvas:       #15110E;
    --bg-card:         #221B17;
    --bg-row-hover:    #2A211C;
    --bg-row-selected: rgba(236, 138, 130, 0.16);
    --bg-tint-accent:  rgba(236, 138, 130, 0.16);
    --bg-tint-warm:    rgba(242, 166, 90, 0.16);
    --bg-tint-info:    rgba(61, 155, 224, 0.18);

    --text-primary:    #F6EEE8;
    --text-secondary:  #C3B4AB;
    --text-tertiary:   #8E817A;

    --border-hairline: #352A24;
    --border-control:  #463930;

    --shadow-card:     0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-float:    0 10px 30px rgba(0, 0, 0, 0.55);
  }
}

/* Reset / base ============================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-primary); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: var(--r-xs);
  background: var(--bg-row-hover);
  color: var(--text-primary);
}

h1, h2, h3 { margin: 0; letter-spacing: -0.01em; color: var(--text-primary); }
h1 { font-size: clamp(36px, 5.6vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.18; font-weight: 650; }
h3 { font-size: 18px; line-height: 1.32; font-weight: 600; }
p  { margin: 0; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--lg);
}
@media (min-width: 720px) { .container { padding-inline: var(--xxl); } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buttons ================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  height: 48px;
  padding: 0 var(--xl);
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }

.btn-primary { background: var(--accent-primary); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-strong); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-control);
}
.btn-secondary:hover { background: var(--bg-row-hover); }
.btn-block { width: 100%; }

/* App Store badge (Apple-style, "coming soon") ----------- */

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 18px 0 16px;
  border-radius: 12px;
  background: #1d1d1f;
  color: #fff;
  border: 1px solid #1d1d1f;
  position: relative;
  cursor: default;
  user-select: none;
}
.appstore-badge:hover { text-decoration: none; }
.appstore-badge .as-glyph { width: 26px; height: 26px; flex: none; }
.appstore-badge .as-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-badge .as-text small { font-size: 10px; font-weight: 500; opacity: 0.85; letter-spacing: 0.01em; }
.appstore-badge .as-text strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.appstore-badge .as-soon {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-sun);
  background: rgba(255, 197, 110, 0.16);
  border: 1px solid rgba(255, 197, 110, 0.35);
  padding: 3px 7px;
  border-radius: var(--r-pill);
}
@media (prefers-color-scheme: dark) {
  .appstore-badge { background: #f5f5f7; color: #1d1d1f; border-color: #f5f5f7; }
  .appstore-badge .as-soon { color: #B5443A; background: rgba(189, 75, 64, 0.12); border-color: rgba(189, 75, 64, 0.3); }
}

/* Nav ==================================================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 239, 0.8);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border-hairline);
}
@media (prefers-color-scheme: dark) { .nav { background: rgba(21, 17, 14, 0.8); } }

.nav-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex; align-items: center; gap: var(--xl);
  padding: var(--md) var(--lg);
}
@media (min-width: 720px) { .nav-inner { padding-inline: var(--xxl); } }

.brand {
  display: inline-flex; align-items: center; gap: var(--sm);
  color: var(--text-primary); font-weight: 650; font-size: 16px;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; width: 26px; height: 26px; border-radius: 7px; overflow: hidden; }

.nav-links { display: none; margin-left: auto; gap: var(--xl); font-size: 14px; }
.nav-links a { color: var(--text-secondary); font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }

.nav-cta { margin-left: auto; height: 38px; padding: 0 var(--lg); font-size: 14px; }
@media (min-width: 820px) { .nav-links { display: flex; } .nav-cta { margin-left: 0; } }

/* Hero =================================================== */

.hero {
  padding: var(--xxxxl) 0 var(--xxxl);
  background:
    radial-gradient(1100px 520px at 14% -5%, rgba(232, 112, 106, 0.16), transparent 60%),
    radial-gradient(900px 460px at 92% 8%, rgba(255, 197, 110, 0.20), transparent 62%),
    var(--bg-canvas);
}

.hero-grid { display: grid; gap: var(--xxl); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--xxxl); } }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 650; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-primary); margin-bottom: var(--lg);
}
.lede {
  margin-top: var(--lg);
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--text-secondary);
  max-width: 40em; line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--md); margin-top: var(--xl); }
.hero-meta { margin-top: var(--lg); font-size: 13px; color: var(--text-tertiary); }
.hero-meta b { color: var(--text-secondary); font-weight: 600; }

/* iPhone mock (live arrival board) ----------------------- */

.hero-visual { display: flex; justify-content: center; align-items: center; }

.phone {
  width: min(300px, 86vw);
  aspect-ratio: 300 / 610;
  background: var(--bg-card);
  border-radius: 44px;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-float);
  padding: 12px;
  position: relative;
}
.phone::before {           /* dynamic island */
  content: "";
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: var(--r-pill);
  background: #0c0c0e; z-index: 3;
}
.phone-screen {
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 197, 110, 0.22), transparent 60%),
    var(--bg-window);
  display: flex; flex-direction: column;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px; font-size: 12px; font-weight: 600; color: var(--text-secondary);
}
.phone-head { padding: 8px 18px 10px; }
.phone-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.phone-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.privacy-pill {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--accent-primary); background: var(--bg-tint-accent);
  padding: 5px 10px; border-radius: var(--r-pill);
}
.privacy-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-primary); }
.phone-board { padding: 6px 12px 14px; display: grid; gap: 8px; overflow: hidden; }
.arr {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-card);
  background: var(--bg-row-hover); font-size: 12.5px;
}
.arr .av {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.arr .nm { font-weight: 600; color: var(--text-primary); }
.arr .st { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }
.arr .badge { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.badge-arrived { color: var(--status-success); background: rgba(52, 199, 89, 0.14); }
.badge-otw     { color: var(--accent-primary); background: var(--bg-tint-accent); }
.badge-late    { color: var(--status-warning); background: var(--bg-tint-warm); }

/* Trust bar ============================================== */

.trust {
  padding: var(--xl) 0;
  background: var(--bg-window);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.trust-list {
  display: grid; gap: var(--md); grid-template-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
  font-size: 13px; color: var(--text-secondary);
}
.trust-list li strong { color: var(--text-primary); }
@media (min-width: 720px) { .trust-list { grid-template-columns: repeat(4, 1fr); gap: var(--xl); } }

/* Section scaffolding ==================================== */

.features, .how, .modes, .faq, .callout, .finale { padding: var(--xxxxl) 0; }
.section-title { text-align: center; }
.section-lede { text-align: center; color: var(--text-secondary); max-width: 38em; margin: var(--md) auto 0; }

/* Feature grid =========================================== */

.feature-grid { display: grid; gap: var(--lg); grid-template-columns: 1fr; margin-top: var(--xxl); }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-card);
  padding: var(--xl);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: transparent; }
.feature-card h3 { margin-bottom: var(--xs); }
.feature-card p { color: var(--text-secondary); font-size: 14.5px; }

.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-card);
  font-size: 20px; margin-bottom: var(--md);
}
.feature-icon[data-tone="accent"]  { background: var(--bg-tint-accent); }
.feature-icon[data-tone="warm"]    { background: var(--bg-tint-warm); }
.feature-icon[data-tone="success"] { background: rgba(52, 199, 89, 0.14); }
.feature-icon[data-tone="info"]    { background: var(--bg-tint-info); }

/* How it works (3 steps) ================================= */

.how { background: var(--bg-window); border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }
.steps { display: grid; gap: var(--xl); grid-template-columns: 1fr; margin-top: var(--xxl); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--xxl); } }
.step { text-align: left; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  font-weight: 700; font-size: 16px;
  color: var(--text-on-accent);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-strong));
  margin-bottom: var(--md);
}
.step h3 { margin-bottom: var(--xs); }
.step p { color: var(--text-secondary); font-size: 14.5px; }

/* Privacy modes ========================================== */

.modes-grid { display: grid; gap: var(--lg); grid-template-columns: 1fr; margin-top: var(--xxl); }
@media (min-width: 560px) { .modes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .modes-grid { grid-template-columns: repeat(4, 1fr); } }

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-card);
  padding: var(--xl);
  display: flex; flex-direction: column; gap: var(--sm);
}
.mode-card .mode-glyph {
  width: 38px; height: 38px; border-radius: var(--r-card);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--bg-tint-accent); margin-bottom: var(--xs);
}
.mode-card h3 { font-size: 16px; }
.mode-card p { color: var(--text-secondary); font-size: 14px; }
.mode-card .mode-tag { margin-top: auto; font-size: 11px; font-weight: 600; color: var(--accent-primary); }

/* Callout ================================================ */

.callout { padding: var(--xxxl) 0; }
.callout-inner {
  display: grid; gap: var(--xl);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 197, 110, 0.16), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-lg);
  padding: var(--xxl);
  align-items: center;
}
.callout-inner h2 { margin-bottom: var(--sm); }
.callout-inner p { color: var(--text-secondary); max-width: 48em; }
@media (min-width: 800px) { .callout-inner { grid-template-columns: 1fr auto; padding: var(--xxxl); gap: var(--xxl); } }

/* FAQ ==================================================== */

.faq-list { margin-top: var(--xxl); display: grid; gap: var(--md); max-width: 760px; margin-inline: auto; }
.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-card);
  padding: var(--lg) var(--xl);
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--md);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--text-tertiary);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list p { margin-top: var(--md); color: var(--text-secondary); font-size: 15px; }

/* Finale ================================================= */

.finale {
  padding: var(--xxxl) 0;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(232, 112, 106, 0.16), transparent 60%),
    radial-gradient(700px 320px at 50% 10%, rgba(255, 197, 110, 0.16), transparent 65%),
    var(--bg-canvas);
  text-align: center;
}
.finale-inner h2 { font-size: clamp(28px, 3.2vw, 38px); }
.finale-inner p { color: var(--text-secondary); margin-top: var(--md); }
.finale-cta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: var(--md); margin-top: var(--xl); }

/* Footer ================================================= */

.footer {
  background: var(--bg-window);
  border-top: 1px solid var(--border-hairline);
  padding: var(--xxxl) 0 var(--xxl);
  font-size: 14px; color: var(--text-secondary);
}
.footer-inner { display: grid; gap: var(--xxl); align-items: start; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1fr 2fr; gap: var(--xxl); } }
.footer-tag { margin-top: var(--sm); color: var(--text-secondary); max-width: 24em; font-size: 13px; }
.brand-footer { font-size: 14px; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--xl); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sm); }
.footer-nav a { color: var(--text-secondary); }
.footer-nav a:hover { color: var(--text-primary); text-decoration: none; }
.footer-bottom {
  margin-top: var(--xl); padding-top: var(--xl);
  border-top: 1px solid var(--border-hairline);
  font-size: 12px; color: var(--text-tertiary); text-align: center;
}

/* Generic doc / legal pages ============================== */

.doc { max-width: 760px; margin: var(--xxxl) auto; padding: 0 var(--lg); }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: var(--md); }
.doc h2 { margin-top: var(--xxl); margin-bottom: var(--sm); }
.doc h3 { margin-top: var(--xl); }
.doc p, .doc li { color: var(--text-secondary); font-size: 15.5px; line-height: 1.65; }
.doc ul, .doc ol { padding-left: var(--xl); }
.doc li + li { margin-top: var(--xs); }
.doc strong { color: var(--text-primary); }
.doc-meta { font-size: 13px; color: var(--text-tertiary); margin-top: var(--xs); }
.doc-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; margin-bottom: var(--xl); color: var(--text-secondary);
}
.doc-back:hover { color: var(--text-primary); text-decoration: none; }

.doc-table { width: 100%; border-collapse: collapse; margin-top: var(--md); font-size: 14.5px; }
.doc-table th, .doc-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-hairline); vertical-align: top;
}
.doc-table th { color: var(--text-primary); font-weight: 600; }
.doc-table td { color: var(--text-secondary); }

.doc-note {
  margin-top: var(--lg); padding: var(--lg) var(--xl);
  background: var(--bg-tint-accent); border-radius: var(--r-card);
  color: var(--text-primary); font-size: 14.5px;
}

/* 404 ==================================================== */

.error-page {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--xxxl) var(--lg);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(232, 112, 106, 0.14), transparent 60%),
    var(--bg-canvas);
}
.error-page h1 { font-size: clamp(48px, 8vw, 96px); letter-spacing: -0.04em; margin-bottom: var(--md); }
.error-page p { color: var(--text-secondary); margin-bottom: var(--xl); max-width: 32em; margin-inline: auto; }

/* Reduced motion ========================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
