/* Featherclip site: mirrors the app's grouped-list look (iOS system colors + indigo accent). */
:root {
  --accent: #4F46E5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --hero-top: #8B8FF8;
  --hero-bottom: #4F46E5;
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --label: #000000;
  --secondary: rgba(60, 60, 67, 0.6);
  --separator: rgba(60, 60, 67, 0.18);
  --positive: #34C759;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(79, 70, 229, 0.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6366F1;
    --accent-soft: rgba(99, 102, 241, 0.2);
    --hero-top: #4B4FD6;
    --hero-bottom: #23207A;
    --bg: #000000;
    --card: #1C1C1E;
    --label: #FFFFFF;
    --secondary: rgba(235, 235, 245, 0.6);
    --separator: rgba(84, 84, 88, 0.6);
    --positive: #30D158;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .rounded {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 1080px; }

/* Nav bar, like the app's BrandTitle */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 0.5px solid var(--separator); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--label); font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; }
.brand img { width: 28px; height: 28px; border-radius: 6.3px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 20px; font-size: 15px; }
.nav-links a { color: var(--secondary); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent); text-decoration: none; }

/* Hero, same gradient as the App Store screenshots */
.hero { background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom)); color: #fff; text-align: center; padding: 64px 0 0; overflow: hidden; }
.hero .icon { width: 112px; height: 112px; border-radius: 25px; margin: 0 auto 24px; box-shadow: 0 12px 32px rgba(20, 16, 120, 0.35); }
.hero h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.05; margin: 0 0 12px; font-weight: 700; }
.hero p.lede { font-size: clamp(18px, 2.6vw, 21px); opacity: 0.88; margin: 0 auto 28px; max-width: 34ch; }
.cta { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #23207A; font-weight: 600; padding: 14px 26px; border-radius: 999px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-size: 17px; box-shadow: 0 6px 20px rgba(20, 16, 120, 0.25); }
.cta:hover { text-decoration: none; transform: translateY(-1px); }
.cta svg { width: 20px; height: 20px; }
.hero small { display: block; margin-top: 14px; font-size: 14px; opacity: 0.75; }

.shots { display: flex; gap: 20px; justify-content: center; padding: 48px 16px 0; margin-bottom: -6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { width: 230px; flex: none; border-radius: 22px 22px 0 0; scroll-snap-align: center; box-shadow: 0 -4px 30px rgba(20, 16, 120, 0.3); }

/* Grouped sections and cards (Form / List in the app) */
main { padding: 40px 0 24px; }
.section-header { text-transform: none; font-size: 15px; font-weight: 600; color: var(--secondary); margin: 32px 0 8px 16px; font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; }
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; border-top: 0.5px solid var(--separator); }
.row .tile { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.row .tile.green { background: var(--positive); }
.row .tile svg { width: 18px; height: 18px; }
.row h3 { margin: 0; font-size: 17px; font-weight: 600; font-family: inherit; letter-spacing: 0; }
.row p { margin: 2px 0 0; color: var(--secondary); font-size: 15px; }
.footer-note { color: var(--secondary); font-size: 13px; margin: 8px 16px 0; }

/* Target-size picker, like the Options screen */
.picker { padding: 16px; }
.segmented { display: flex; background: rgba(120, 120, 128, 0.12); border-radius: 9px; padding: 2px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.segmented span { flex: 1; text-align: center; padding: 6px 0; border-radius: 7px; color: var(--label); }
.segmented span.on { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { border-radius: 14px; padding: 12px; background: rgba(120, 120, 128, 0.12); border: 2px solid transparent; }
.choice.on { background: var(--accent-soft); border-color: var(--accent); }
.choice b { display: block; font-size: 15px; }
.choice span { font-size: 13px; color: var(--secondary); }
.estimate { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.estimate b { font-size: 17px; }
.pill { font-size: 13px; font-weight: 600; color: var(--positive); }
.button { display: block; text-align: center; margin-top: 12px; background: var(--accent); color: #fff; font-weight: 600; border-radius: 999px; padding: 14px; font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; }

.big-number { text-align: center; padding: 28px 16px; }
.big-number .ring { width: 120px; height: 120px; margin: 0 auto 14px; }
.big-number h2 { margin: 0; font-size: 28px; }
.big-number p { margin: 4px 0 0; color: var(--secondary); }

/* Text pages */
.doc h1 { font-size: 34px; margin: 8px 0 4px; }
.doc .updated { color: var(--secondary); margin: 0 0 24px; font-size: 15px; }
.doc .card { padding: 4px 20px; }
.doc h2 { font-size: 20px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--label); }
.doc ul { padding-left: 20px; }
.doc .card > :first-child { margin-top: 18px; }
.doc .card > :last-child { margin-bottom: 18px; }
details { padding: 14px 16px; position: relative; }
details + details::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--separator); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "›"; color: var(--secondary); font-size: 22px; line-height: 1; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(90deg); }
details p { margin: 8px 0 0; color: var(--secondary); font-size: 15px; }

footer { text-align: center; color: var(--secondary); font-size: 13px; padding: 24px 16px 48px; }
footer nav { display: flex; gap: 18px; justify-content: center; margin-bottom: 8px; }
footer a { color: var(--secondary); }

@media (max-width: 560px) {
  .choices { grid-template-columns: 1fr 1fr; }
  .choices .choice:last-child { display: none; }
  .shots { justify-content: flex-start; }
  .shots img { width: 200px; }
  .nav-links { gap: 14px; }
}
