/*
  Deepday — marketing site design system
  Inter typography · Phosphor icons · indigo + orange palette
  Shared across index.html, privacy.html, terms.html
*/
:root {
  --bg: #E7E5EF;
  --bg-warm: #F2F2F7;
  --surface: #FFFFFF;
  --surface-2: #F2F3F9;
  --ink: #1C1C1E;
  --ink-2: #3A3A42;
  --muted: #6B6B74;
  --muted-2: #CBCBD6;
  --line: #E4E3EE;
  --line-strong: #D8D7E3;
  --primary: #4F46E5;
  --primary-2: #4338CA;
  --primary-3: #6366F1;
  --primary-soft: #EEF2FF;
  --accent: #F97316;
  --accent-soft: #FFF7ED;
  --wordmark: #312E81;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; }
i { font-style: normal; line-height: 1; }
img { max-width: 100%; display: block; }

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

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(231, 229, 239, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--wordmark);
}
.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--primary-3), var(--primary) 60%, var(--primary-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.4);
}
.brand .by { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.cta {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.nav-links a.cta:hover { background: var(--primary-2); }
@media (max-width: 640px) {
  .nav-links a.plain { display: none; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn i { font-size: 18px; }

/* ============ HERO ============ */
.hero { padding: 80px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 40px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.eyebrow i { font-size: 15px; }
.hero h1 {
  font-size: 54px;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero p.lede {
  font-size: 19px;
  color: var(--ink-2);
  margin: 0 0 30px;
  max-width: 38ch;
}
@media (max-width: 860px) { .hero h1 { font-size: 42px; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-note i { color: var(--primary); font-size: 15px; }

/* Phone preview in hero */
.phone-hero {
  justify-self: center;
  width: 300px;
  height: 616px;
  background: #0b0b0d;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 40px 80px -28px rgba(49, 46, 129, 0.5), 0 16px 32px -14px rgba(20, 20, 30, 0.25);
  position: relative;
}
.phone-hero .island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 21px; background: #0b0b0d; border-radius: 14px; z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--bg-warm);
  border-radius: 32px; overflow: hidden; padding: 44px 16px 16px;
  display: flex; flex-direction: column;
}
.ps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-shrink: 0; }
.ps-head h4 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.ps-head .btns { display: flex; gap: 8px; }
.ps-head .btns span {
  width: 32px; height: 32px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); font-size: 14px;
}
.mini-progress {
  background: var(--surface); border-radius: 20px; padding: 16px 18px;
  margin-bottom: 14px; position: relative; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line);
}
.mini-progress .ring {
  width: 58px; height: 58px; flex-shrink: 0; position: relative;
}
.mini-progress .ring svg { width: 100%; height: 100%; }
.mini-progress .ring .txt {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.mini-progress .info { flex: 1; }
.mini-progress .info .m { font-size: 15px; font-weight: 600; color: var(--ink); }
.mini-progress .info .s { font-size: 13px; color: var(--muted); margin-top: 3px; }
.mini-list { position: relative; flex: 1; overflow: hidden; margin: 0 -1px; }
.mini-list::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: linear-gradient(to bottom, rgba(242, 242, 247, 0), var(--bg-warm));
  pointer-events: none;
}
.mini-row {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px; margin-bottom: 8px; display: flex; align-items: center; gap: 11px;
}
.mini-row .check {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted-2);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.mini-row .check.done { background: var(--primary); border-color: var(--primary); }
.mini-row .check.done svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; fill: none; }
.mini-row .info { flex: 1; min-width: 0; }
.mini-row .m { font-size: 13px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.mini-row .m.done { color: var(--muted-2); text-decoration: line-through; }
.mini-row .s { font-size: 10px; color: var(--muted); margin-top: 1px; }
.mini-row .tag {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 5px;
}
.mini-row .tag.work { background: var(--primary-soft); color: var(--primary); }
.mini-row .tag.health { background: #ECFDF5; color: #047857; }
.mini-row .tag.personal { background: var(--accent-soft); color: #B4690E; }
.mini-row .dots { display: inline-flex; gap: 3px; }
.mini-row .dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.mini-row .dots span.empty { background: transparent; border: 1.5px solid #E5A08C; box-sizing: border-box; }

/* ============ TRUST STRIP ============ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
}
.strip .wrap {
  display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center;
  padding: 22px 24px; font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.strip .item { display: inline-flex; align-items: center; gap: 8px; }
.strip .item i { color: var(--primary); font-size: 17px; }

/* ============ SECTIONS ============ */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin: 0 0 12px;
}
.section-head h2 { font-size: 38px; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.section-head p { font-size: 17px; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .section-head h2 { font-size: 30px; } section { padding: 60px 0; } }

/* Feature cards */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px; min-height: 234px;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -26px rgba(49, 46, 129, 0.3);
  border-color: var(--line-strong);
}
.card h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 700; position: relative; z-index: 1; }
.card p { font-size: 14px; color: var(--ink-2); margin: 0; position: relative; z-index: 1; max-width: 90%; }
.card .deco {
  position: absolute; right: -20px; bottom: -20px; z-index: 0; pointer-events: none;
  width: 150px; height: 150px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.card:hover .deco { transform: rotate(8deg) scale(1.08); }
.card .deco.indigo { color: #818cf8; }
.card .deco.orange { color: #f97316; }
.card .deco.sky { color: #38bdf8; }
.card .deco.violet { color: #a78bfa; }
.card .deco.teal { color: #2dd4bf; }
.card .deco.rose { color: #fb7185; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .n {
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff;
  font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.02em; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* Screenshots */
.screens {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.screen { flex: 0 0 auto; width: 220px; scroll-snap-align: start; }
.screen img {
  width: 100%;
  display: block;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 44px -24px rgba(49, 46, 129, 0.4);
}
@media (max-width: 640px) { .screen { width: 178px; } }

/* Privacy banner block */
.privacy-block {
  background: linear-gradient(150deg, var(--primary-3), var(--primary) 60%, var(--primary-2));
  color: #fff;
  border-radius: 26px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.privacy-block::after {
  content:''; position:absolute; right:-80px; top:-80px; width:280px; height:280px;
  border-radius:50%; background: rgba(255, 255, 255, 0.1);
}
.privacy-block .inner { position: relative; max-width: 620px; }
.privacy-block .ic {
  width: 52px; height: 52px; border-radius: 15px; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px;
}
.privacy-block h2 { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; line-height: 1.1; }
.privacy-block p { font-size: 17px; opacity: .9; margin: 0 0 10px; }
.privacy-block a.link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
@media (max-width: 640px) { .privacy-block { padding: 40px 28px; } .privacy-block h2 { font-size: 27px; } }

/* Support */
.support-card {
  max-width: 540px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 48px 40px;
}
.support-card .ic {
  width: 52px; height: 52px; border-radius: 15px; background: var(--primary-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 25px; margin: 0 auto 20px;
}
.support-card h3 { font-size: 24px; margin: 0 0 10px; font-weight: 800; letter-spacing: -0.02em; }
.support-card p { font-size: 15px; color: var(--ink-2); margin: 0 0 24px; }
@media (max-width: 640px) { .support-card { padding: 36px 26px; } }

/* CTA */
.cta-final { text-align: center; }
.cta-final h2 { font-size: 40px; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 800; }
.cta-final p { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; }
.cta-final .stores { justify-content: center; }
@media (max-width: 640px) { .cta-final h2 { font-size: 30px; } }

/* Store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 11px 18px;
  text-decoration: none; transition: opacity .12s ease;
}
.store-badge:hover { opacity: .88; }
.store-badge i { font-size: 26px; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .txt .s { font-size: 10px; opacity: .75; }
.store-badge .txt .b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
  padding: 48px 0 40px;
  margin-top: 40px;
}
.footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer .about { max-width: 320px; }
.footer .about p { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer .col h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  font-weight: 700; margin: 0 0 14px;
}
.footer .col a {
  display: block; text-decoration: none; color: var(--ink-2); font-size: 14px;
  margin-bottom: 10px;
}
.footer .col a:hover { color: var(--ink); }
.footer .bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer .bottom a { color: var(--muted); text-decoration: none; }
.footer .bottom a:hover { color: var(--ink-2); }

/* ============ LEGAL / DOC PAGES ============ */
.doc { padding: 56px 0 40px; }
.doc-head { max-width: 760px; margin: 0 auto 40px; }
.doc-head .kicker {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin: 0 0 12px;
}
.doc-head h1 { font-size: 42px; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 800; }
.doc-head .updated { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .doc-head h1 { font-size: 32px; } }

.doc-body {
  max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 44px 48px;
}
@media (max-width: 640px) { .doc-body { padding: 28px 24px; } }
.doc-body .intro { font-size: 16px; color: var(--ink-2); }
.doc-body h2 {
  font-size: 22px; letter-spacing: -0.02em; margin: 36px 0 12px; font-weight: 700;
  padding-top: 8px;
}
.doc-body h2:first-of-type { margin-top: 8px; }
.doc-body h3 { font-size: 16px; margin: 22px 0 8px; font-weight: 700; }
.doc-body p { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.doc-body ul { margin: 0 0 16px; padding-left: 22px; }
.doc-body li { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.doc-body a { color: var(--primary); font-weight: 500; }
.doc-body strong { color: var(--ink); }
.doc-body .callout {
  background: var(--primary-soft); border: 1px solid var(--primary-3);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 24px;
  display: flex; gap: 12px; align-items: flex-start;
}
.doc-body .callout i { color: var(--primary); font-size: 22px; flex-shrink: 0; }
.doc-body .callout p { margin: 0; font-size: 14px; color: var(--ink-2); }
.doc-body .callout p strong { color: var(--primary); }
.toc {
  max-width: 760px; margin: 0 auto 24px;
  font-size: 13px; color: var(--muted);
}
