/* Relationship Tracker — design tokens from OnTimeTheme / DesignTokens */

:root {
  --bg: #f8f7f5;
  --surface: #ffffff;
  --card: #f0efed;
  --text: #2a2826;
  --text-secondary: #5f6f82;
  --text-tertiary: #7a8796;
  --accent: #4f7dba;
  --accent-hover: #3d6ba8;
  --accent-soft: rgba(79, 125, 186, 0.12);
  --accent-secondary: #8aa8c8;
  --rose: #d88aa3;
  --rose-soft: rgba(216, 138, 163, 0.14);
  --border: rgba(42, 40, 38, 0.08);
  --shadow: 0 4px 24px rgba(42, 40, 38, 0.06);
  --shadow-accent: 0 12px 40px rgba(79, 125, 186, 0.18);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-hero: 22px;
  --radius-pill: 980px;
  --max: 1120px;
  --content: 680px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover { text-decoration: underline; }

h1, h2, h3, .heading-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 245, 0.88);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { color: var(--accent); text-decoration: none; }

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 22%;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(79, 125, 186, 0.2);
}

.logo-text {
  line-height: 1.2;
}

@media (max-width: 480px) {
  .logo-text { display: none; }
  .logo-icon { width: 36px; height: 36px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav a:hover { color: var(--accent); }

.nav-cta {
  padding: 8px 18px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-pill);
}

.nav-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.menu-btn {
  display: none;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .menu-btn { display: block; }
  .header-inner { position: relative; flex-wrap: wrap; }
}

main { flex: 1; }

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

/* Hero */
.hero {
  padding: 56px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero-copy { position: relative; z-index: 1; }

.kicker {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.125rem, 6vw, 3rem);
  line-height: 1.08;
}

.hero-lead {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.4;
  color: var(--text);
}

.hero-body {
  margin: 0 0 28px;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(79, 125, 186, 0.3);
  text-decoration: none;
}

.btn-store {
  background: var(--card);
  color: var(--text-tertiary);
  cursor: default;
}

.btn-store:hover { transform: none; text-decoration: none; }

/* App icon hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 45%, rgba(79, 125, 186, 0.22), transparent 65%),
    radial-gradient(ellipse 40% 35% at 60% 70%, var(--rose-soft), transparent 55%);
  pointer-events: none;
}

.hero-app-icon {
  position: relative;
  width: min(300px, 78vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  box-shadow:
    0 24px 56px rgba(79, 125, 186, 0.22),
    0 8px 24px rgba(42, 40, 38, 0.08);
}

.phone {
  position: relative;
  width: min(280px, 100%);
  background: var(--surface);
  border-radius: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-accent), 0 0 0 1px rgba(255,255,255,0.6) inset;
  padding: 12px 12px 20px;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: var(--card);
  border-radius: 0 0 14px 14px;
  margin: 0 auto 12px;
}

.phone-screen {
  background: var(--bg);
  border-radius: 24px;
  padding: 20px 16px;
  min-height: 340px;
}

.mock-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.mock-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 4px;
  line-height: 1.2;
}

.mock-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.mock-countdown {
  font-size: 2.5rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 4px;
  font-family: var(--font-sans);
}

.mock-days {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0 0 20px;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}

.mock-card h4 {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-family: var(--font-sans);
}

.mock-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-family: var(--font-serif);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--card);
  border-block: 1px solid var(--border);
}

.section-title {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.section-title h2 {
  margin: 0 0 12px;
  font-size: clamp(1.625rem, 4vw, 2rem);
}

.section-title p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.benefits {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
}

.benefit {
  text-align: center;
  padding: 28px 20px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 14px;
  color: var(--accent);
}

.benefit h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-family: var(--font-serif);
}

.benefit p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.features {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature h3 svg {
  flex-shrink: 0;
  color: var(--accent);
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Trust */
.trust-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  background: linear-gradient(145deg, var(--accent-soft) 0%, var(--rose-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.trust-panel blockquote {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.4375rem);
  line-height: 1.45;
}

.trust-panel > p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* CTA */
.cta {
  text-align: center;
  padding: 80px 24px;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
}

.cta p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  max-width: 440px;
  margin-inline: auto;
}

/* Legal / support pages */
.page-top {
  padding: 56px 24px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--accent-soft), transparent 65%),
    var(--bg);
}

.page-top h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 5vw, 2.375rem);
}

.page-top .sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-tertiary);
}

.page-content {
  padding: 0 24px 80px;
}

.prose {
  max-width: var(--content);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: 1.0625rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin: 24px 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.prose p, .prose li {
  font-size: 1rem;
  line-height: 1.65;
}

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 1.35rem;
}

.prose li { margin-bottom: 8px; }

.prose .note {
  padding: 16px 18px;
  background: var(--card);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.faq { list-style: none; margin: 0; padding: 0; }

.faq li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.faq li:first-child { padding-top: 0; }

.faq strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--text);
}

.faq p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-box {
  margin-top: 32px;
  padding: 32px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-box p { margin: 0 0 8px; color: var(--text-secondary); }

.contact-email {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 48px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 22%;
  box-shadow: 0 4px 16px rgba(79, 125, 186, 0.15);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
}

.footer-tagline {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
