/* ============ Everline website — ported from the app's design system ============
   Warm paper, sage & blush. Ambient orbs + grain, frosted glass panels,
   tilted echo cards with editorial quote marks, Fraunces 560 headings.     */

:root {
  --bg: #f7f2ea;            /* warm paper */
  --bg-raised: #f0e9de;     /* sand */
  --bg-card: #fffdf8;       /* ivory card */
  --glass: rgba(255, 253, 248, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --ink: #3e372f;           /* warm espresso */
  --ink-dim: #776c5f;       /* driftwood */
  --ink-faint: #b3a89c;
  --accent: #54705a;        /* calming sage */
  --accent-2: #6d8a72;
  --accent-soft: rgba(84, 112, 90, 0.13);
  --blush: #d9a18c;
  --blush-soft: rgba(217, 161, 140, 0.18);
  --line: rgba(62, 55, 47, 0.1);
  --shadow-card:
    0 1px 2px rgba(62, 55, 47, 0.06),
    0 8px 24px rgba(62, 55, 47, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --serif: 'Fraunces', 'New York', ui-serif, Georgia, serif;
  --sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }

/* fine paper grain over everything (same SVG noise as the app) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.24 0 0 0 0 0.21 0 0 0 0 0.18 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ambient drifting orbs — the "alive" depth layer (all three, like the app) */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(46px); will-change: transform; }
.orb-1 {
  width: 65vw; height: 65vw; top: -18vw; right: -20vw;
  background: radial-gradient(circle, rgba(217, 161, 140, 0.4), transparent 70%);
  animation: drift1 19s ease-in-out infinite alternate;
}
.orb-2 {
  width: 55vw; height: 55vw; bottom: 4vh; left: -22vw;
  background: radial-gradient(circle, rgba(109, 138, 114, 0.32), transparent 70%);
  animation: drift2 23s ease-in-out infinite alternate;
}
.orb-3 {
  width: 40vw; height: 40vw; top: 38vh; right: -12vw;
  background: radial-gradient(circle, rgba(226, 196, 153, 0.32), transparent 70%);
  animation: drift3 27s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(-9vw, 11vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(8vw, -9vh) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-7vw, -7vh) scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .orb, .dot, .fade-up, .brand-line, .phone, .composer textarea::placeholder { animation: none !important; }
}

main, header.site, footer.site { position: relative; z-index: 1; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ============ shared bits (straight from the app) ============ */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.fade-up { animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

.brand-line {
  width: 56px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transform-origin: left;
  animation: drawLine 1s cubic-bezier(0.22, 1, 0.36, 1) both 0.2s;
}
@keyframes drawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============ header ============ */

header.site {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 960px; margin: 0 auto; padding: 22px 24px;
}
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-link img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 8px rgba(62,55,47,.18); }
.brand-link span {
  font-family: var(--serif); font-weight: 560; font-size: 23px; letter-spacing: -0.015em;
}
nav.site { display: flex; gap: 6px; padding: 6px; border-radius: 999px; }
nav.site a {
  color: var(--ink-dim); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; transition: color .25s, background .25s;
}
nav.site a:hover { color: var(--accent); background: var(--accent-soft); }
nav.site a.active {
  color: #fdfbf6;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  box-shadow: 0 4px 12px rgba(84, 112, 90, 0.4);
}

/* ============ hero ============ */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(40px, 5.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-top: 14px;
}
.hero-copy h1 em { font-style: italic; color: var(--accent); }
.hero-copy .lede {
  color: var(--ink-dim); font-size: 18px; line-height: 1.6; max-width: 46ch; margin-top: 18px;
}
.hero-copy .brand-line { margin-top: 22px; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; }

/* CTA — the app's gradient button */
.cta {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  color: #fdfbf6;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 2px 6px rgba(84, 112, 90, 0.3),
    0 10px 26px rgba(84, 112, 90, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: scale(0.97); }

.trial-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blush-soft);
  border: 1px solid rgba(217, 161, 140, 0.35);
  color: #9c6450;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ phone mockup — the Today screen, recreated ============ */

.phone-wrap { display: flex; justify-content: center; perspective: 1200px; }
.phone {
  position: relative;
  width: 320px;
  border-radius: 44px;
  background: var(--bg);
  border: 1px solid rgba(62, 55, 47, 0.14);
  box-shadow:
    0 2px 6px rgba(62, 55, 47, 0.1),
    0 30px 60px rgba(62, 55, 47, 0.22),
    inset 0 0 0 7px #2e2a25,
    inset 0 0 0 8px rgba(255, 255, 255, 0.12);
  padding: 30px 22px 22px;
  overflow: hidden;
  transform: rotate(1.2deg);
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both 0.15s;
}
.phone::before { /* notch */
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 22px;
  border-radius: 999px;
  background: #2e2a25;
}
.phone .screen { position: relative; padding-top: 22px; }

.today-date {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 10px;
  max-width: 9em;
}

.composer {
  margin-top: 20px;
  border-radius: 22px;
  padding: 18px 16px 13px;
}
.composer .entry-text {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 460;
  line-height: 1.5;
  color: var(--ink);
  min-height: 78px;
}
.composer .caret {
  display: inline-block;
  width: 1.5px; height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.ink-line {
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), rgba(84, 112, 90, 0));
}
.composer-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 11px; color: var(--ink-faint);
}
.saved-flag { color: var(--accent); font-weight: 700; }

.echoes { margin-top: 24px; }

/* echo cards — past years, stacked like kept letters */
.echo-card {
  position: relative;
  border-radius: 18px;
  padding: 18px 18px 16px 24px;
  margin-top: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.echo-card:nth-child(even) { transform: rotate(-0.35deg); }
.echo-card:nth-child(odd) { transform: rotate(0.3deg); }
.echo-card::before {
  content: '\201C';
  position: absolute;
  top: 6px; left: 8px;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: var(--blush);
  opacity: 0.55;
}
.echo-year { font-size: 11px; letter-spacing: 0.2em; color: var(--accent); font-weight: 800; }
.echo-ago { float: right; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; }
.echo-text {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 460;
  line-height: 1.52;
  color: var(--ink);
}

/* streak thread pill */
.thread {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 7px 13px; border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(84, 112, 90, 0.18);
  color: var(--accent);
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
}

/* floating glass pill nav inside the phone */
.tabbar {
  position: relative;
  margin: 22px auto 0;
  width: max-content;
  display: flex; gap: 6px; padding: 7px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 2px 6px rgba(62, 55, 47, 0.08),
    0 14px 36px rgba(62, 55, 47, 0.16);
}
.tabbar span {
  width: 50px; height: 42px; border-radius: 999px;
  color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.tabbar span.active {
  color: #fdfbf6;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  box-shadow: 0 4px 12px rgba(84, 112, 90, 0.4);
}

/* ============ sections ============ */

section { padding: 64px 0; }
.section-head { max-width: 560px; margin-bottom: 40px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .brand-line { margin: 18px auto 0; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-top: 12px;
}
.section-head .sub { color: var(--ink-dim); margin-top: 14px; font-size: 17px; }

/* feature cards — glass, like echo cards but upright */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  border-radius: 18px;
  padding: 24px 22px;
}
.feature .f-ico {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature.blush-tint .f-ico { background: var(--blush-soft); color: #9c6450; }
.feature h3 {
  font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.feature p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; }

/* memory card variant (blush-tinted, like the app's "Remember this?") */
.memory-card {
  background: linear-gradient(135deg, rgba(217, 161, 140, 0.16), rgba(255, 253, 248, 0.6));
  border: 1px solid rgba(217, 161, 140, 0.35);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.memory-card .echo-year { color: #9c6450; }

/* ============ constellation section ============ */

.constellation-card {
  border-radius: 24px;
  padding: 30px 28px;
  max-width: 640px;
  margin: 0 auto;
}
.constellation {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 9px;
}
.dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(62, 55, 47, 0.1);
  animation: dotIn 0.5s ease both;
}
@keyframes dotIn {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
.dot.lit {
  background: radial-gradient(circle at 35% 32%, var(--accent-2), var(--accent) 72%);
  box-shadow:
    0 0 9px rgba(84, 112, 90, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.dot.today-dot {
  outline: 1.5px solid var(--accent);
  outline-offset: 2px;
  animation: dotIn 0.5s ease both, pulse 2.6s ease-in-out infinite 1s;
}
@keyframes pulse {
  0%, 100% { outline-offset: 2px; outline-color: var(--accent); }
  50% { outline-offset: 4px; outline-color: rgba(84, 112, 90, 0.35); }
}
.dot.future { background: rgba(62, 55, 47, 0.045); }
.constellation-caption {
  margin-top: 18px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 14px;
}

/* ============ pricing — styled like the app's paywall ============ */

.paywall {
  max-width: 480px;
  margin: 0 auto;
  border-radius: 26px;
  padding: 36px 32px;
}
.paywall .trial-pill { margin-bottom: 16px; }
.paywall h2 {
  font-family: var(--serif); font-weight: 560; font-size: 30px; line-height: 1.25;
  letter-spacing: -0.01em;
}
.paywall-points {
  margin-top: 24px;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(62,55,47,.05);
}
.paywall-points div {
  display: flex; gap: 12px; align-items: baseline;
  color: var(--ink); font-size: 15px; line-height: 1.45;
}
.paywall-points span { color: var(--accent); }
.price-row { margin-top: 28px; display: flex; align-items: baseline; gap: 12px; }
.price {
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 560;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-note { color: var(--ink-dim); font-size: 13px; }
.paywall .cta { display: block; text-align: center; margin-top: 26px; }
.paywall .after-note { margin-top: 14px; text-align: center; color: var(--ink-faint); font-size: 13px; }

/* ============ footer ============ */

footer.site { margin-top: 30px; padding: 36px 0 48px; }
footer.site .footer-card {
  border-radius: 22px;
  padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
footer.site .f-brand { display: flex; align-items: center; gap: 10px; }
footer.site .f-brand img { width: 30px; height: 30px; border-radius: 8px; }
footer.site .f-brand span { font-family: var(--serif); font-weight: 560; font-size: 18px; }
footer.site nav a {
  color: var(--ink-dim); text-decoration: none; font-weight: 700; font-size: 14px; margin-left: 20px;
}
footer.site nav a:hover { color: var(--accent); }
footer.site .copy {
  text-align: center; margin-top: 18px; color: var(--ink-faint); font-size: 13px;
}

/* ============ inner pages (support / privacy) ============ */

.page { padding: 28px 0 56px; max-width: 720px; margin: 0 auto; }
.page-head h1 {
  font-family: var(--serif); font-weight: 560;
  font-size: clamp(36px, 5vw, 50px); letter-spacing: -0.018em; line-height: 1.1;
  margin-top: 12px;
}
.page-head .intro { color: var(--ink-dim); font-size: 17.5px; margin-top: 14px; max-width: 56ch; }
.page-head .brand-line { margin-top: 20px; }
.page h2 {
  font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.01em;
  margin: 44px 0 16px;
}
.page p, .page li { color: var(--ink-dim); font-size: 15.5px; }
.page ul { padding-left: 22px; margin: 10px 0; }
.page a { color: var(--accent); font-weight: 700; }
.updated { color: var(--ink-faint); font-size: 13px; margin-top: 8px; }

/* contact card — glass hero panel */
.contact-card {
  border-radius: 22px;
  padding: 26px 28px;
  margin-top: 32px;
}
.contact-card a.email {
  display: inline-block;
  font-family: var(--serif); font-weight: 560; font-size: 26px;
  color: var(--ink); text-decoration: none; margin-top: 8px;
}
.contact-card a.email:hover { color: var(--accent); }
.contact-card p { font-size: 14px; margin-top: 10px; }

/* FAQ — settings-group style rows */
.faq-group {
  margin-top: 20px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
details.faq { border-bottom: 1px solid var(--line); }
details.faq:last-child { border-bottom: none; }
details.faq summary {
  cursor: pointer; list-style: none;
  padding: 17px 20px;
  font-weight: 700; font-size: 15.5px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  transition: background .2s;
}
details.faq summary:hover { background: rgba(84, 112, 90, 0.05); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-family: var(--serif);
  color: var(--accent); font-size: 22px; font-weight: 400; flex-shrink: 0;
  transition: transform .2s;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .a { padding: 0 20px 18px; color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; }
details.faq .a p + p { margin-top: 10px; }

/* ============ responsive ============ */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 36px 0 56px; }
  .phone-wrap { order: 2; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  header.site { flex-direction: column; gap: 14px; }
  .features { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  footer.site .footer-card { justify-content: center; text-align: center; }
  footer.site nav a { margin: 0 10px; }
}
