/* Sundial — marketing site styles (TimeGround) */
:root {
  --paper-top: #FBF0DC;
  --paper-bot: #F3DDBB;
  --paper: #FBF3E7;
  --surface: #FFF9F0;
  --card: #F7EEDD;
  --border: #E9D8C0;
  --ink: #3A2E23;
  --ink-soft: #6C5B4B;
  --primary: #B0592B;
  --primary-2: #A94E22;
  --primary-tint: #FBE1CC;
  --sage: #4C6A4F;
  --lavender: #6B5B95;
  --shadow: 0 20px 50px -20px rgba(90, 54, 25, .40);
  --radius: 22px;
  --maxw: 1120px;
  --serif: Georgia, 'Times New Roman', Cambria, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); }
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(176,89,43,.7); }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.btn svg { width: 20px; height: 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(251, 243, 231, .82);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: inline-flex; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--paper-top), var(--paper-bot)); padding: 84px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 18px; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 33ch; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--primary); }
.hero-art { position: relative; display: flex; justify-content: center; }

/* Phone mockup */
.phone {
  width: 300px; max-width: 78vw; border-radius: 40px; padding: 10px;
  background: #241d17; box-shadow: var(--shadow);
}
.phone img { border-radius: 30px; display: block; width: 100%; }
.phone.tilt { transform: rotate(-3deg); }

/* Sections */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--primary); font-family: var(--sans); margin-bottom: 12px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -22px rgba(90,54,25,.4); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary-2); margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.25rem; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); }

/* Screenshot gallery */
.gallery-wrap { background: linear-gradient(180deg, var(--paper), var(--paper-bot)); }
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 8px 24px 24px; scroll-snap-type: x mandatory; margin: 0 -24px; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.shot { flex: 0 0 auto; width: 250px; scroll-snap-align: center; border-radius: 30px; padding: 8px; background: #241d17; box-shadow: var(--shadow); }
.shot img { border-radius: 24px; display: block; width: 100%; }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.theme-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); text-align: center; }
.swatch { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; }
.swatch span { width: 26px; height: 26px; border-radius: 50%; }
.theme-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.theme-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* Privacy band */
.band { background: var(--ink); color: #F3E7D8; border-radius: 28px; padding: 56px 40px; text-align: center; }
.band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0 0 14px; }
.band p { color: #E6D6C3; max-width: 620px; margin: 0 auto; font-size: 1.1rem; }
.band .pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pill { border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 8px 16px; font-size: .92rem; color: #F3E7D8; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 16px; }
.cta p { color: var(--ink-soft); font-size: 1.15rem; margin: 0 0 28px; }

/* Footer */
footer { background: var(--card); border-top: 1px solid var(--border); padding: 56px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.foot-brand img { width: 40px; height: 40px; border-radius: 11px; }
.foot col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-family: var(--sans); }
.foot h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-family: var(--sans); margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul li { margin-bottom: 10px; }
.foot a { color: var(--ink); }
.foot a:hover { color: var(--primary-2); }
.socials { display: flex; gap: 12px; margin: 18px 0 0; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink); }
.socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.socials svg { width: 19px; height: 19px; }
.foot-bottom { max-width: var(--maxw); margin: 36px auto 0; padding: 22px 24px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-soft); font-size: .9rem; }
.foot-bottom a { color: var(--ink-soft); }

/* Legal pages */
.legal { padding: 64px 0; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 6px; }
.legal .updated { color: var(--ink-soft); margin: 0 0 32px; }
.legal h2 { font-size: 1.4rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal a { word-break: break-word; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-weight: 600; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { justify-content: center; }
  .features { grid-template-columns: 1fr 1fr; }
  .themes { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .themes { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
