/* Scooch site styles: AlarmPlanner's layout (via getchoru.com), Scooch's olive ground and leaf green */
:root {
  --bg: #12160b;
  --bg-2: #1a2010;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --text: #eef2e2;
  --muted: #aab392;
  --accent: #a6c25f;
  --accent-strong: #6e8a2f;
  --accent-soft: #cfe09a;
  --accent-dim: rgba(166, 194, 95, 0.14);
  --sofa: #c77deb;
  --clash: #ef6461;
  --radius: 18px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(166, 194, 95, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(199, 125, 235, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 22, 11, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 12px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.nav-logo img { width: 34px; height: 34px; border-radius: 8px; }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: #172009 !important; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; font-size: 15px;
}
.nav-cta:hover { background: var(--accent-soft); text-decoration: none; }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.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; }
  .hero { padding-top: 44px; }
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-soft);
  background: var(--accent-dim); border: 1px solid rgba(166, 194, 95, 0.28);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
h1 .accent { color: var(--accent); }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 80vw); }

/* App screenshots framed in the iPhone shell (buttons included) at build time;
   shadow follows the transparent frame outline */
img.screen {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.badge-link {
  display: inline-flex; border-radius: 13px;
  /* box-shadow, not filter: drop-shadow: filter transitions re-rasterize the
     SVG (janky) and Safari clips filtered replaced elements at the sides */
  box-shadow: 0 0 0 rgba(166, 194, 95, 0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.badge-link img { height: 60px; width: auto; display: block; border-radius: 13px; }
.badge-link:hover, a:hover .badge-link {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(166, 194, 95, 0.36);
}
.btn-secondary {
  border: 1px solid var(--border); color: var(--text); padding: 13px 22px;
  border-radius: 12px; font-weight: 600; font-size: 16px; background: var(--panel);
}
.btn-secondary:hover { background: var(--panel-2); text-decoration: none; }
.trust-row {
  display: flex; gap: 10px 26px; flex-wrap: wrap; margin-top: 22px;
  color: var(--muted); font-size: 14.5px;
}
.trust-row span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Features */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.feature-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.feature-card .ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: var(--accent-soft);
}
.feature-card .ico svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 15px; }
.extras { color: var(--muted); font-size: 15.5px; max-width: 760px; margin-top: 26px; }
.extras strong { color: var(--text); font-weight: 600; }

/* Screenshots: slow infinite marquee (track holds two identical sets; shifting
   the track by -50% equals exactly one set, so the loop is seamless) */
.shots-marquee { overflow: hidden; padding: 18px 0 20px; width: 100%; }
.shots-track { display: flex; width: max-content; animation: shots-scroll 70s linear infinite; }
.shots-set { display: flex; }
.shots-marquee figure { flex: 0 0 auto; width: min(64vw, 264px); margin-right: 18px; }
.shots-marquee img.screen {
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.40));
  transition: transform 0.3s ease;
}
.shots-marquee figure:hover img.screen { transform: scale(1.045); }
.shots-marquee figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }
@keyframes shots-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .shots-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .shots-track { animation: none; }
  .shots-set[aria-hidden="true"] { display: none; }
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.step .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #172009;
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.guide-card {
  display: block; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.guide-card:hover { border-color: rgba(166, 194, 95, 0.48); background: var(--panel-2); text-decoration: none; }
.guide-card h3 { font-size: 16.5px; margin-bottom: 6px; color: var(--text); }
.guide-card p { color: var(--muted); font-size: 14.5px; }
.guide-card .more { display: inline-block; margin-top: 10px; color: var(--accent-soft); font-size: 14px; font-weight: 600; }
.guide-card.tool { border-color: rgba(166, 194, 95, 0.42); background: var(--accent-dim); }
.guide-cluster + .guide-cluster { margin-top: 52px; }
.cluster-intro { color: var(--muted); max-width: 780px; margin: 10px 0 22px; font-size: 15.5px; }

/* FAQ */
.faq-list { max-width: 780px; }
.faq-list details {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 4px 22px; margin-bottom: 12px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 14px 0;
  list-style: none; position: relative; padding-right: 34px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 22px; font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); padding-bottom: 18px; font-size: 15.5px; }

/* CTA band: the ENTIRE band is one anchor to the App Store */
a.cta-band { display: block; color: inherit; }
a.cta-band:hover { text-decoration: none; }
.cta-band {
  background: linear-gradient(135deg, rgba(166, 194, 95, 0.18), rgba(110, 138, 47, 0.12));
  border: 1px solid rgba(166, 194, 95, 0.32); border-radius: 24px;
  padding: 52px 40px; text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.cta-band:hover { border-color: rgba(166, 194, 95, 0.66); transform: translateY(-2px); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 60px; margin-top: 40px; }
.footer-grid { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14.5px; }
.footer-note { color: #737c5c; font-size: 13.5px; margin-top: 26px; }

/* ---------- Article pages ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 48px 24px 20px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-soft); }
.article h1 { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 14px; }
.article .lede { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.article h2 { font-size: 24px; margin: 40px 0 14px; }
.article h3 { font-size: 18px; margin: 26px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent); font-weight: 700; }

.quick-answer {
  background: var(--accent-dim); border: 1px solid rgba(166, 194, 95, 0.32);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 30px;
}
.quick-answer strong { color: var(--accent-soft); }
.quick-answer p { margin: 0; font-size: 16px; }

.article figure { margin: 28px auto; max-width: 320px; }
.article figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.article figure.diagram { max-width: 560px; }
.diagram svg { width: 100%; height: auto; display: block; }

.note-box {
  background: var(--panel); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
  padding: 14px 18px; margin: 20px 0; font-size: 15px; color: var(--muted);
}

/* Size tables */
.table-wrap { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--border); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--accent-soft); font-weight: 600; background: var(--panel); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

/* Article CTA: the ENTIRE box is one anchor to the App Store */
a.article-cta { display: block; color: inherit; }
a.article-cta:hover { text-decoration: none; }
.article-cta {
  background: linear-gradient(135deg, rgba(166, 194, 95, 0.18), rgba(110, 138, 47, 0.12));
  border: 1px solid rgba(166, 194, 95, 0.32); border-radius: 18px;
  padding: 28px; margin: 40px 0; text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.article-cta:hover { border-color: rgba(166, 194, 95, 0.66); transform: translateY(-2px); }
.article-cta h2 { margin: 0 0 8px; font-size: 22px; }
.article-cta p { color: var(--muted); margin-bottom: 18px; }
.article-cta .cta-row { justify-content: center; }

.related { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 28px; }
.related h2 { font-size: 20px; margin-bottom: 16px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 10px; }

/* ---------- The fit calculator ---------- */
.fit-tool {
  background: var(--panel); border: 1px solid rgba(166, 194, 95, 0.32); border-radius: var(--radius);
  padding: 24px; margin: 6px 0 30px;
}
.fit-tool fieldset { border: 0; margin: 0 0 18px; }
.fit-tool legend { font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.fit-tool legend .opt { color: var(--muted); font-weight: 400; font-size: 14.5px; }
.fit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; }
.fit-tool label { display: block; font-size: 14px; color: var(--muted); }
.fit-tool label span.name { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.fit-field { display: flex; align-items: center; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: 10px; }
.fit-field:focus-within { border-color: var(--accent); }
.fit-tool input[type="number"] {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text);
  font: inherit; font-size: 17px; padding: 10px 0 10px 12px; outline: none;
}
.fit-field .unit-label { color: var(--muted); padding: 0 12px 0 6px; font-size: 14px; }
.unit-toggle { display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.unit-toggle label { position: relative; cursor: pointer; }
.unit-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.unit-toggle span { display: block; padding: 6px 16px; font-size: 14.5px; color: var(--muted); }
.unit-toggle input:checked + span { background: var(--accent); color: #172009; font-weight: 700; }
.unit-toggle input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: -2px; }
.fit-submit {
  font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
  background: var(--accent); color: #172009; border: 0; border-radius: 12px; padding: 12px 24px;
}
.fit-submit:hover { background: var(--accent-soft); }
#fit-result:empty { display: none; }
#fit-result { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.fit-line { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; font-size: 15.5px; }
.fit-ok { background: var(--accent-dim); border: 1px solid rgba(166, 194, 95, 0.36); }
.fit-warn { background: rgba(240, 190, 80, 0.10); border: 1px solid rgba(240, 190, 80, 0.36); }
.fit-no { background: rgba(239, 100, 97, 0.10); border: 1px solid rgba(239, 100, 97, 0.40); }
.fit-note { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }

.mascot { width: 180px; height: auto; margin: 0 auto 18px; }
td .sub, th .sub { color: var(--muted); font-size: 13.5px; font-weight: 400; }
