/* CravePlan website: home page and privacy policy. Based on Cart Hub's site; no external fonts or scripts. */
:root {
  --bg: #f7f5f2;
  --bg-soft: #efebe6;
  --card: #ffffff;
  --text: #1c1b1a;
  --muted: #6b6762;
  --accent: #c0560b;        /* text-safe version of the app's orange (#E86E14) on light */
  --accent-fill: #d2600a;   /* darker than the app orange so white button text stays readable */
  --accent-soft: rgba(232, 110, 20, 0.10);
  --line: #e6e1db;
  --bezel: #1d1c1b;
  --shadow: 0 24px 60px rgba(60, 40, 20, 0.16), 0 4px 14px rgba(60, 40, 20, 0.08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --bg-soft: #1b1a18;
    --card: #1f1d1b;
    --text: #f2efeb;
    --muted: #a8a29b;
    --accent: #ff9a38;
    --accent-fill: #e2700f;
    --accent-soft: rgba(255, 154, 56, 0.12);
    --line: #34302c;
    --bezel: #3a3734;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent); }

/* Header and footer (shared with the privacy page) */
.bar, main, .foot { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.home .bar, .home main { max-width: 1120px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.logo { margin-right: 4px; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 16px; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--accent); }
nav a.nav-cta { color: var(--accent); font-weight: 600; }

.foot { color: var(--muted); font-size: 14px; padding: 40px 20px 32px; text-align: center; }
.foot a { color: var(--muted); }

/* Device frames. --w is the frame width; the radii follow the device's corners. */
.phone {
  --w: 280px;
  width: var(--w);
  padding: calc(var(--w) * 0.032);
  background: var(--bezel);
  border-radius: calc(var(--w) * 0.165);
  box-shadow: var(--shadow);
}
.phone img { width: 100%; border-radius: calc(var(--w) * 0.135); }
.watch {
  --w: 170px;
  width: var(--w);
  padding: calc(var(--w) * 0.07);
  background: #121212;
  border-radius: calc(var(--w) * 0.27);
  box-shadow: var(--shadow), inset 0 0 0 2px #2c2c2c;
}
.watch img { width: 100%; border-radius: calc(var(--w) * 0.19); }
.tablet {
  padding: 12px;
  background: var(--bezel);
  border-radius: 34px;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.tablet img { width: 100%; border-radius: 22px; }
.card-shot { --w: 240px; width: var(--w); border-radius: calc(var(--w) * 0.075); overflow: hidden; box-shadow: var(--shadow); }

/* Hero */
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  padding: 40px 0 56px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; margin: 0 0 20px; letter-spacing: -0.03em; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.badge-store {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  background: var(--text); color: var(--bg); border-radius: 12px; font-weight: 600;
}
.badge-store { text-decoration: none; }
.badge-store:hover { opacity: 0.88; }
.badge-soon { background: var(--card); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.badge-soon:hover { opacity: 1; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.hero-art { position: relative; height: 600px; }
.hero-art .phone { position: absolute; }
.hero-art .phone-back { --w: 250px; left: 4%; top: 40px; transform: rotate(-6deg); opacity: 0.96; }
.hero-art .phone-front { --w: 270px; right: 4%; top: 0; transform: rotate(3deg); }
.hero-art::before {
  content: ""; position: absolute; inset: 12% 0 6% 0; z-index: -1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}

/* Highlights */
.facts {
  list-style: none; margin: 0 0 24px; padding: 22px 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
}
.facts li { text-align: center; padding: 4px 12px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 22px; letter-spacing: -0.01em; }
.facts span { color: var(--muted); font-size: 15px; }

/* Feature rows */
.showcase { padding: 24px 0; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px;
  padding: 64px 0; border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; }
.feature-text > p:not(.eyebrow) { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-fill)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.feature-art { display: flex; justify-content: center; align-items: center; gap: 24px; }
.feature-art.duo { align-items: flex-start; }
.feature-art.duo .phone { --w: 250px; }
.feature-art.duo .card-shot { margin-top: 110px; }
.phone-offset { margin-top: 64px; }
.watches { gap: 18px; }
.watch-raised { --w: 190px; transform: translateY(-24px); }
.feature-wide { grid-template-columns: 1fr 1.2fr; }

/* Everything else */
.more { padding: 40px 0 24px; }
.more > h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin: 0 0 20px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid article, .privacy-note, .support {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px;
}
.ico {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px;
  border-radius: 11px; background: var(--accent-soft); font-size: 21px;
}
.grid h3 { font-size: 18px; margin: 0 0 4px; }
.grid p { margin: 0; color: var(--muted); }

.privacy-note {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--card);
}
.privacy-note h2, .support h2 { font-size: 22px; margin: 0 0 6px; }
.privacy-note p, .support p { margin: 0; color: var(--muted); }
.support { margin-top: 16px; }
.support p a { font-weight: 600; }
.button {
  flex: none; white-space: nowrap; display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: 12px; background: var(--accent-fill); color: #fff; text-decoration: none; font-weight: 600;
}
.button:hover { filter: brightness(1.06); }

/* Privacy policy */
.doc { max-width: 760px; padding-bottom: 24px; }
.doc h1 { font-size: 34px; margin: 24px 0 4px; letter-spacing: -0.02em; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc li { margin-bottom: 8px; }
.muted { color: var(--muted); }

/* Tablet and phone widths */
@media (max-width: 900px) {
  .hero, .feature, .feature-wide { grid-template-columns: 1fr; gap: 32px; }
  .hero { text-align: center; padding-top: 24px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { height: 540px; max-width: 520px; width: 100%; margin: 0 auto; }
  .feature { padding: 48px 0; }
  .feature.flip .feature-text { order: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .facts li:nth-child(3) { border-left: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar, main, .foot { padding-left: 16px; padding-right: 16px; }
  .hide-sm { display: none; }
  nav a { margin-left: 16px; }
  .lead { font-size: 18px; }
  .hero-art { height: 440px; }
  .hero-art .phone-back { --w: 180px; left: 4%; top: 34px; }
  .hero-art .phone-front { --w: 200px; right: 2%; }
  .phone { --w: 240px; }
  .feature-art.duo .phone { --w: 160px; }
  .feature-art.duo .card-shot { --w: 160px; margin-top: 60px; }
  .feature-art { gap: 14px; }
  .phone-offset { margin-top: 40px; }
  .watch { --w: 96px; }
  .watch-raised { --w: 112px; transform: translateY(-14px); }
  .watches { gap: 10px; }
  .tablet { padding: 8px; border-radius: 24px; }
  .tablet img { border-radius: 16px; }
  .facts { padding: 18px 4px; }
  .facts strong { font-size: 19px; }
  .facts span { font-size: 14px; }
  .grid { grid-template-columns: 1fr; }
  .privacy-note { flex-direction: column; align-items: flex-start; }
}
