/* DayKind site — warm, quiet, no JavaScript */

:root {
  color-scheme: light dark;
  --sand: #f5efe7;
  --sand-deep: #ece3d8;
  --ink: #312a27;
  --muted: #6f625c;
  --line: rgba(49, 42, 39, 0.12);
  --accent: #9f555d;
  --accent-2: #b66468;
  --accent-soft: rgba(182, 100, 104, 0.12);
  --card: rgba(255, 255, 255, 0.55);
  --card-strong: rgba(255, 255, 255, 0.78);
  --bezel: #2a2422;
  --shadow: 0 34px 60px -28px rgba(49, 42, 39, 0.45);
  --radius: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand: #1c1817;
    --sand-deep: #241f1d;
    --ink: #f3ebe3;
    --muted: #b5a9a1;
    --line: rgba(243, 235, 227, 0.14);
    --accent: #d99098;
    --accent-2: #e2a0a6;
    --accent-soft: rgba(217, 144, 152, 0.14);
    --card: rgba(255, 255, 255, 0.05);
    --card-strong: rgba(255, 255, 255, 0.08);
    --bezel: #0d0b0b;
    --shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .display {
  font-family: "New York", ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 12px;
}

h1 { font-size: clamp(38px, 7vw, 66px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.6vw, 44px); }
h3 { font-size: 22px; line-height: 1.25; margin-bottom: 6px; }

p, li { max-width: 62ch; }
p { margin: 0 0 16px; }

a { color: inherit; text-decoration-color: var(--accent-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.muted { color: var(--muted); }
.lede { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; color: var(--muted); }

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  padding: 22px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: "New York", ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--accent); }

/* ---------- App Store button ---------- */

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.1;
  box-shadow: 0 16px 30px -18px rgba(49, 42, 39, 0.7);
  transition: transform 0.15s ease;
}
.store-btn:hover { color: var(--sand); transform: translateY(-1px); }
.store-btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; letter-spacing: 0.02em; }
.store-btn span { display: block; font-size: 17px; }
@media (prefers-color-scheme: dark) {
  .store-btn { background: var(--ink); color: #1c1817; }
  .store-btn:hover { color: #1c1817; }
}

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.cta-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Phone & watch frames ---------- */

.phone {
  width: min(300px, 74vw);
  padding: 10px;
  border-radius: 44px;
  background: var(--bezel);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  margin: 0 auto;
}
.phone img { border-radius: 34px; width: 100%; }
.phone--sm { width: min(220px, 60vw); padding: 8px; border-radius: 34px; }
.phone--sm img { border-radius: 26px; }

.watch {
  width: min(250px, 62vw);
  aspect-ratio: 422 / 514;
  padding: 14px;
  border-radius: 26%;
  background: var(--bezel);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  position: relative;
}
.watch img { width: 100%; height: 100%; object-fit: cover; border-radius: 22%; }
.watch::before, .watch::after {
  content: "";
  position: absolute;
  right: -7px;
  width: 7px;
  border-radius: 0 4px 4px 0;
  background: var(--bezel);
}
.watch::before { top: 28%; height: 18%; }
.watch::after { top: 52%; height: 11%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 72px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero::before { width: 520px; height: 520px; right: -140px; top: -80px; background: rgba(182, 100, 104, 0.22); }
.hero::after { width: 420px; height: 420px; left: -200px; bottom: -160px; background: rgba(233, 178, 130, 0.22); }
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
}
.hero-copy .lede { margin-top: 12px; }
.hero-visual { position: relative; display: grid; place-items: center; padding: 30px 0; }
.hero-visual .ring {
  position: absolute;
  width: min(420px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 100, 104, 0.18) 0%, rgba(182, 100, 104, 0) 68%);
  z-index: 0;
}
.hero-visual .phone { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual .ring { animation: breathe 6s ease-in-out infinite; }
  @keyframes breathe {
    0%, 100% { transform: scale(0.94); opacity: 0.8; }
    50% { transform: scale(1.06); opacity: 1; }
  }
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }
section.alt { background: var(--sand-deep); }
.section-head { max-width: 680px; margin-bottom: 36px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.card p:last-child { margin-bottom: 0; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "New York", ui-serif, Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.split.flip > :first-child { order: 2; }
.split .visual { display: grid; place-items: center; }
.mini-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 14px;
  border-right: 2.5px solid var(--accent-2);
  border-bottom: 2.5px solid var(--accent-2);
  transform: rotate(45deg);
}

/* Trust strip */
.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.trust div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  font-weight: 600;
}
.trust .no {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-2);
  position: relative;
}
.trust .no::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--accent-2);
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Plus */
.plus-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  padding: 36px;
  border-radius: 28px;
  background: var(--card-strong);
  border: 1px solid var(--line);
}
.plus-card .free {
  align-self: center;
  padding: 24px;
  border-radius: 20px;
  background: var(--accent-soft);
}
.plus-card .free h3 { color: var(--accent); }
.plus-card .free p:last-child { margin-bottom: 0; }

/* Final CTA */
.closing { text-align: center; padding: 80px 0; }
.closing h2 { margin-bottom: 8px; }
.closing .cta-row { justify-content: center; }
.closing p { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Text pages (support, privacy, press) ---------- */

main.doc, main:not(.home) {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 80px;
}
main.doc h1, main:not(.home) h1 { margin-bottom: 8px; }
main.doc h2, main:not(.home) h2 { font-size: 28px; margin: 44px 0 10px; }
main.doc h3, main:not(.home) h3 { font-size: 20px; margin-top: 28px; }

details.faq {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 40px 14px 0;
  font-weight: 600;
  font-size: 18px;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 10px;
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > :not(summary) { margin-bottom: 14px; }
details.faq p:last-child, details.faq ul:last-child { margin-bottom: 18px; }

.callout {
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  margin: 20px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Press */
.press-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin: 12px 0 28px; }
.press-hero img { width: 120px; height: 120px; border-radius: 27px; box-shadow: var(--shadow); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding: 0; list-style: none; margin: 16px 0 0; }
.facts li { padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); max-width: none; }
.facts strong { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 20px 0 8px; }
.shots figure { margin: 0; }
.shots img { border-radius: 18px; border: 1px solid var(--line); background: var(--bezel); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.shots--watch img { border-radius: 22%; }
.download { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.download:hover { color: #fff; background: var(--accent-2); }
blockquote.boiler { margin: 12px 0 0; padding: 18px 22px; border-left: 3px solid var(--accent-2); background: var(--card); border-radius: 0 16px 16px 0; }
blockquote.boiler p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plus-card { grid-template-columns: 1fr; padding: 28px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  section { padding: 48px 0; }
  .hero { padding-bottom: 48px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > :first-child { order: 0; }
  .hero-visual { padding: 12px 0 0; }
  .grid-3, .trust { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; gap: 16px; }
  .facts { grid-template-columns: 1fr; }
  .wrap, main:not(.home) { width: min(1080px, calc(100% - 32px)); }
  .plus-card { padding: 22px; }
  .card { padding: 22px; }
}

@media (max-width: 480px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shots--watch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .press-hero { gap: 18px; }
}
