/* Family Calendar product pages, in the brand kit's colors. Pages under developers/ and
   install.html are generated by cmd/site-docs in the family_calendar repository. */
:root{
  --bg:#f4f8ff; --surface:#fff; --surface-2:#eaf1fd; --ink:#14223d; --muted:#51607a; --line:#d8e2f2;
  --blue:#1673e6; --blue-deep:#0b4fb3; --navy:#1b2f5a; --green:#2fb35a; --orange:#f7901e; --pink:#e8466a; --violet:#a46cf2;
  --accent:var(--blue); --on-accent:#fff; --code:#eef3fb; --shadow:0 18px 50px rgba(22,63,140,.12);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root{
  --bg:#0c1426; --surface:#131e36; --surface-2:#1a2846; --ink:#e9effa; --muted:#a3b1c9; --line:#273656;
  --blue:#4b9bff; --blue-deep:#7bb6ff; --accent:#4b9bff; --on-accent:#06142c; --code:#1a2742; --shadow:0 18px 50px rgba(0,0,0,.35);
  color-scheme:dark;
}
:root .tag.coming,:root .tag.soon-tag{color:#ffb35c} :root .tag.later,:root .tag.idea{color:#c7a4ff}
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.65 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:var(--blue)}
a:hover{color:var(--blue-deep)}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px}
img{max-width:100%;height:auto}
.shell{width:min(calc(100% - 32px),1080px);margin-inline:auto}
h1,h2,h3{font-family:"Bricolage Grotesque",Inter,system-ui,sans-serif;line-height:1.15;letter-spacing:-.015em}
section[id],h2[id],h3[id]{scroll-margin-top:90px}

/* Header and footer */
.site-header{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav-wrap{min-height:68px;display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap;padding:8px 0}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.brand img{width:40px;height:40px;flex-shrink:0;object-fit:contain;border-radius:10px}
.brand span{display:flex;flex-direction:column;line-height:1.1}
.brand strong{font-family:"Bricolage Grotesque",Inter,sans-serif;font-size:19px}
.brand small{font-size:11px;color:var(--muted);letter-spacing:.02em}
.nav-links{margin-left:auto;display:flex;gap:4px;flex-wrap:wrap}
.nav-links a{padding:7px 12px;border-radius:999px;color:var(--ink);text-decoration:none;font-size:14px;font-weight:600}
.nav-links a:hover{background:var(--surface-2)}
.nav-links a[aria-current]{background:var(--surface-2);color:var(--blue)}
footer{border-top:1px solid var(--line);padding:26px 0 36px;color:var(--muted);font-size:14px;margin-top:40px}
footer .shell{display:flex;gap:12px 24px;flex-wrap:wrap;justify-content:space-between}
footer a{color:var(--muted)}

/* Buttons */
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border-radius:12px;font-weight:700;text-decoration:none;border:2px solid transparent;transition:transform .15s ease,background .15s ease}
.button:hover{transform:translateY(-1px)}
.button.primary{background:var(--blue);color:var(--on-accent)}
.button.primary:hover{background:var(--blue-deep);color:var(--on-accent)}
.button.ghost{border-color:var(--line);color:var(--ink);background:var(--surface)}
.button.ghost:hover{border-color:var(--blue);color:var(--blue)}
.button[aria-disabled]{opacity:.7;pointer-events:none}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}

/* Hero */
.hero{padding:56px 0 40px}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center}
.eyebrow{margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}
.hero h1{font-size:clamp(40px,6.4vw,68px);margin:0 0 6px}
.byline{margin:0 0 20px;color:var(--muted);font-weight:600}
.lead{font-size:clamp(17px,2.2vw,20px);color:var(--ink);opacity:.88;max-width:620px}
.hero-art{position:relative;display:grid;place-items:center}
.hero-art:before{content:"";position:absolute;inset:8% 6%;border-radius:40%;background:radial-gradient(circle at 30% 30%,rgba(22,115,230,.22),transparent 60%),radial-gradient(circle at 75% 70%,rgba(232,70,106,.18),transparent 60%),radial-gradient(circle at 70% 25%,rgba(47,179,90,.16),transparent 55%);filter:blur(20px)}
.hero-art img{position:relative;width:min(100%,400px);height:auto;filter:drop-shadow(0 24px 40px rgba(22,63,140,.18))}
.pills{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 0;padding:0;list-style:none}
.pills li{padding:6px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:14px;font-weight:600}

/* Sections */
.band{padding:56px 0}
.band.alt{background:var(--surface);border-block:1px solid var(--line)}
.section-head{max-width:720px;margin-bottom:28px}
.section-head h2{font-size:clamp(30px,4vw,42px);margin:0 0 10px}
.section-head p{margin:0;color:var(--muted);font-size:18px}
.grid{display:grid;gap:18px}
.grid.three{grid-template-columns:repeat(3,1fr)}
.grid.two{grid-template-columns:repeat(2,1fr)}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px}
.band.alt .tile{background:var(--bg)}
.tile h3{margin:12px 0 6px;font-size:20px}
.tile p{margin:0;color:var(--muted)}
.icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:#fff}
.icon svg{width:24px;height:24px}
.c-blue{background:var(--blue)} .c-green{background:var(--green)} .c-orange{background:var(--orange)}
.c-pink{background:var(--pink)} .c-violet{background:var(--violet)} .c-navy{background:var(--navy)}

/* Get it: the two ways to run it */
.paths{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.path{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.path h3{font-size:26px;margin:6px 0 8px}
.path .tag{align-self:flex-start;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:999px;background:var(--surface-2);color:var(--blue)}
.path ol,.path ul{padding-left:20px;margin:12px 0}
.path li{margin:6px 0}
.path .actions{margin-top:auto;padding-top:12px}
.note{font-size:14px;color:var(--muted)}
.price{display:flex;gap:18px;flex-wrap:wrap}
.price .tile{flex:1 1 260px}

/* Coming soon */
.soon{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;background:linear-gradient(120deg,var(--navy),#2353a8);color:#fff;border-radius:24px;padding:30px 32px}
.soon h2{margin:0 0 6px;font-size:30px;color:#fff}
.soon p{margin:0;color:#d9e6ff}
.soon .icon{width:64px;height:64px;border-radius:18px;background:rgba(255,255,255,.14)}
.soon .icon svg{width:34px;height:34px}
.soon .button.primary{background:#fff;color:var(--navy)}
.soon a:not(.button){color:#fff}

/* Plugins page: status tags and questions */
.tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:999px;background:var(--surface-2);color:var(--blue);vertical-align:middle}
.tag.ready{background:color-mix(in srgb,var(--green) 16%,transparent);color:var(--green)}
.tag.coming,.tag.soon-tag{background:color-mix(in srgb,var(--orange) 18%,transparent);color:#b85f00}
.tag.later,.tag.idea{background:color-mix(in srgb,var(--violet) 16%,transparent);color:#7a3fd0}
.eyebrow .tag{margin-left:8px;letter-spacing:.06em}
.faq{display:grid;gap:12px;max-width:820px}
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:4px 20px}
.faq summary{cursor:pointer;font-weight:700;padding:12px 0;list-style-position:outside}
.faq details p{margin:0 0 14px;color:var(--muted)}

/* Text pages: privacy, install guide, developer docs */
main.doc,main.text{padding:40px 0 20px;max-width:860px}
.doc h1,.text h1{font-size:clamp(34px,5vw,48px);margin:0 0 8px}
.doc h2,.text h2{font-size:26px;margin:40px 0 10px;padding-top:6px}
.doc h3{font-size:20px;margin:28px 0 8px}
.doc p,.doc li,.text p,.text li{max-width:75ch}
.muted{color:var(--muted)}
.crumbs{font-size:14px;color:var(--muted);margin:0 0 18px}
ul,ol{padding-left:22px}
li{margin:5px 0}
code{font:0.88em/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--code);padding:1px 6px;border-radius:5px;overflow-wrap:anywhere}
pre{background:var(--code);border:1px solid var(--line);border-radius:12px;padding:14px 16px;overflow-x:auto}
pre code{background:none;padding:0;overflow-wrap:normal}
table{border-collapse:collapse;width:100%;margin:14px 0;font-size:15px;display:block;overflow-x:auto}
th,td{border:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top}
th{background:var(--surface-2)}
blockquote{margin:16px 0;padding:4px 18px;border-left:4px solid var(--blue);background:var(--surface)}

@media (max-width:860px){
  .hero-grid,.paths,.grid.two{grid-template-columns:1fr}
  .grid.three{grid-template-columns:repeat(2,1fr)}
  .hero-art{order:-1}
  .hero-art img{width:min(70%,260px)}
  .soon{grid-template-columns:1fr}
}
@media (max-width:560px){
  .grid.three{grid-template-columns:1fr}
  .nav-links{margin-left:0;width:100%}
  .hero{padding-top:28px}
  .path,.soon{padding:22px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}.button:hover{transform:none}}
