/* Daylist website — shared styles
   Palette pulled from the app's wallpaper renderer:
   navy #14214A · slate #5773B3 · sand #DBC9B3 · teal #2EB3A1 · ink #141A2E */

:root {
  --navy: #14214a;
  --slate: #5773b3;
  --sand: #dbc9b3;
  --sand-soft: #f3ece1;
  --teal: #2eb3a1;
  --teal-dark: #1f8e80;
  --ink: #141a2e;
  --ink-soft: #4a5169;
  --bg: #faf8f4;
  --card: #ffffff;
  --line: #e7e1d6;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 14px 40px rgba(20, 33, 74, 0.1);
  --wallpaper: linear-gradient(160deg, #14214a 0%, #5773b3 48%, #dbc9b3 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none;
}
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 9px 18px;
  border-radius: 999px; font-size: 0.9rem;
}
.nav-cta:hover { background: var(--navy); }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1.05rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(20, 26, 46, 0.28); }
.btn-primary:hover { background: var(--navy); }
.btn-secondary { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn small { display: block; font-weight: 500; font-size: 0.7rem; opacity: 0.75; }
.btn-apple { text-align: left; line-height: 1.15; }
.btn-apple .apple-logo {
  width: 22px; height: 26px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal-dark);
  background: rgba(46, 179, 161, 0.12); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.08;
  font-weight: 900; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--slate); }
.hero-sub {
  font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 30px; max-width: 34rem;
}
@media (max-width: 860px) { .hero-sub { margin-left: auto; margin-right: auto; } }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 860px) { .hero-actions { justify-content: center; } }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Phone mockup (pure CSS lock-screen preview) ---------- */
.phone {
  width: 290px; margin: 0 auto; border-radius: 44px; padding: 12px;
  background: #0d1226; box-shadow: var(--shadow), inset 0 0 0 2px #262c45;
}
.phone-screen {
  border-radius: 34px; overflow: hidden; background: var(--wallpaper);
  aspect-ratio: 9 / 19.5; position: relative; display: flex; flex-direction: column;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-clock { text-align: center; color: rgba(255, 255, 255, 0.95); margin-top: 12px; }
.phone-clock .date { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.phone-clock .time { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.task-card {
  margin-top: auto; background: rgba(255, 255, 255, 0.88); border-radius: 20px;
  padding: 16px 15px 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.task-card .tc-eyebrow {
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.18em; color: var(--slate);
}
.task-card .tc-count { font-size: 0.95rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.task-row {
  display: flex; align-items: center; gap: 9px; padding: 6.5px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07); font-size: 0.8rem; font-weight: 600;
}
.task-row:last-child { border-bottom: none; }
.task-check {
  width: 15px; height: 15px; border-radius: 5px; flex-shrink: 0;
  border: 2px solid rgba(20, 26, 46, 0.5);
}
.task-row.done .task-check {
  background: var(--teal); border-color: var(--teal); position: relative;
}
.task-row.done .task-check::after {
  content: "✓"; color: #fff; font-size: 10px; font-weight: 900;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%);
}
.task-row.done span { text-decoration: line-through; color: rgba(20, 26, 46, 0.42); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 900; letter-spacing: -0.015em;
  margin: 10px 0 14px;
}
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Download strip ---------- */
.download-strip {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 40px 42px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.download-strip h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.download-strip p { color: rgba(255, 255, 255, 0.75); }
.download-strip .btn-primary { background: #fff; color: var(--ink); }
.download-strip .btn-primary:hover { background: var(--sand-soft); }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1000px) { .shots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shot {
  aspect-ratio: 1290 / 2796; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); background: var(--sand-soft);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; padding: 18px;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-caption { text-align: center; margin-top: 10px; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.section-alt .step { background: var(--bg); }
.step-num {
  width: 38px; height: 38px; border-radius: 12px; background: rgba(46, 179, 161, 0.14);
  color: var(--teal-dark); font-weight: 900; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; font-size: 1.05rem;
}
.step h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Guides grid ---------- */
.guides-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 20px; text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease; display: block;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card .tag {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate);
}
.guide-card h3 { font-size: 1.12rem; font-weight: 800; margin: 8px 0 8px; line-height: 1.3; }
.guide-card p { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 12px; }
.guide-card .more { color: var(--teal-dark); font-weight: 700; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 12px;
}
.section-alt .faq details { background: var(--bg); }
.faq summary {
  cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--slate); font-weight: 600; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding-top: 12px; color: var(--ink-soft); }
.faq .answer a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.faq .answer a:hover { text-decoration: underline; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center; background: var(--wallpaper); border-radius: var(--radius-lg);
  padding: 70px 32px; color: #fff;
}
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 14px; letter-spacing: -0.015em; }
.final-cta p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 32rem; margin: 0 auto 30px; }
.final-cta .btn-primary { background: #fff; color: var(--ink); }
.final-cta .btn-primary:hover { background: var(--sand-soft); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; margin-top: 76px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 0.93rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 34px; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Guide article pages ---------- */
.article { padding: 56px 0 20px; }
.breadcrumb { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 22px; }
.breadcrumb a { color: var(--teal-dark); text-decoration: none; font-weight: 600; }
.article h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem); font-weight: 900; line-height: 1.12;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.article .lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 34px; }
.article h2 { font-size: 1.5rem; font-weight: 800; margin: 40px 0 14px; letter-spacing: -0.01em; }
.article h3 { font-size: 1.15rem; font-weight: 800; margin: 26px 0 10px; }
.article p { margin-bottom: 16px; color: #2a3047; }
.article ul, .article ol { margin: 0 0 16px 24px; color: #2a3047; }
.article li { margin-bottom: 8px; }
.article a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article strong { color: var(--ink); }
.callout {
  background: var(--sand-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 24px 0;
}
.callout-title { font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.cta-box {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 34px 32px; margin: 44px 0; text-align: center;
}
.cta-box h2 { color: #fff; margin: 0 0 8px; }
.cta-box p { color: rgba(255, 255, 255, 0.8); margin-bottom: 20px; }
.cta-box .btn-primary { background: #fff; color: var(--ink); }
.related { margin-top: 24px; }
.related h2 { font-size: 1.3rem; }
