/* Gantt Planner website: shared styles.
   Colours match the app (Gantt-Planner.html :root). Light and dark follow the
   device, or the app's own Appearance choice (localStorage 'ganttPlanner.theme'). */

:root{
  color-scheme: light dark;
  --bg:#f5f5f7; --surface:#ffffff; --surface-2:#f7f7f9; --hover:#ececf0;
  --text:#1d1d1f; --muted:#5b5b63; --line:#d6d6dc; --line-soft:#ebebef;
  --accent:#0a62cc; --accent-text:#ffffff; --accent-soft:rgba(10,98,204,.09);
  --crit:#d0213b; --progress:#d42a63; --baseline:#9a9aa6; --milestone:#c25e0c;
  --c-blue:#2f6fde; --c-teal:#0f8585; --c-green:#2e8a39; --c-orange:#c25e0c; --c-purple:#6f48c8; --c-phase:#3a3a44;
  --warn-bg:#fff6e0; --warn-line:#e7c56a; --warn-text:#5a4300;
  --shadow:0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --radius:1rem;
  --wrap:68rem;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#141416; --surface:#1d1d20; --surface-2:#242428; --hover:#2e2e33;
    --text:#f2f2f5; --muted:#a8a8b2; --line:#3a3a41; --line-soft:#2b2b30;
    --accent:#4d94ff; --accent-text:#0b0b0d; --accent-soft:rgba(77,148,255,.14);
    --crit:#ff5468; --progress:#ff6b9b; --baseline:#77778a; --milestone:#ee8a3c;
    --c-blue:#5b8ff0; --c-teal:#2bb0b0; --c-green:#4fb65c; --c-orange:#ee8a3c; --c-purple:#9b7cf0; --c-phase:#c9c9d3;
    --warn-bg:#2d2610; --warn-line:#6b5a22; --warn-text:#f3dd9a;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"]{
  color-scheme: dark;
  --bg:#141416; --surface:#1d1d20; --surface-2:#242428; --hover:#2e2e33;
  --text:#f2f2f5; --muted:#a8a8b2; --line:#3a3a41; --line-soft:#2b2b30;
  --accent:#4d94ff; --accent-text:#0b0b0d; --accent-soft:rgba(77,148,255,.14);
  --crit:#ff5468; --progress:#ff6b9b; --baseline:#77778a; --milestone:#ee8a3c;
  --c-blue:#5b8ff0; --c-teal:#2bb0b0; --c-green:#4fb65c; --c-orange:#ee8a3c; --c-purple:#9b7cf0; --c-phase:#c9c9d3;
  --warn-bg:#2d2610; --warn-line:#6b5a22; --warn-text:#f3dd9a;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
}
:root[data-theme="light"]{ color-scheme: light; }

/* ---------- Base ---------- */
*,*::before,*::after{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-behavior:smooth }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto } *{ transition:none !important } }
body{
  margin:0; background:var(--bg); color:var(--text);
  font:1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
}
@supports (font: -apple-system-body){ body{ font:-apple-system-body; font-family:-apple-system, BlinkMacSystemFont, system-ui, sans-serif; line-height:1.6 } }
img{ max-width:100%; height:auto; display:block }
a{ color:var(--accent); text-underline-offset:.18em }
a:hover{ text-decoration-thickness:2px }
:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; border-radius:.25rem }
body{ overflow-wrap:break-word }
h1,h2,h3,summary,.btn,.brand{ overflow-wrap:anywhere; -webkit-hyphens:auto; hyphens:auto }
h1,h2,h3{ line-height:1.2; letter-spacing:-.01em; margin:0 0 .5em }
h1{ font-size:clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight:750; letter-spacing:-.025em }
h2{ font-size:clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); font-weight:700; letter-spacing:-.02em }
h3{ font-size:1.15em; font-weight:650 }
p{ margin:0 0 1em }
.wrap{ width:min(100% - 2rem, var(--wrap)); margin-inline:auto }
.narrow{ width:min(100% - 2rem, 44rem); margin-inline:auto }
.muted{ color:var(--muted) }
.visually-hidden{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0 }

.skip{ position:absolute; left:1rem; top:-10rem; z-index:10; background:var(--accent); color:var(--accent-text); padding:.6rem 1rem; border-radius:.5rem; font-weight:600; text-decoration:none }
.skip:focus{ top:1rem }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:5;
  background:color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter:saturate(180%) blur(14px); backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line-soft);
}
.site-header .wrap{ display:flex; align-items:center; gap:1rem; padding-block:.6rem; flex-wrap:wrap }
.brand{ display:inline-flex; align-items:center; gap:.6rem; color:var(--text); text-decoration:none; font-weight:700; font-size:1.05em; margin-right:auto }
.brand img{ width:2rem; height:2rem; border-radius:.45rem; box-shadow:0 1px 2px rgba(0,0,0,.2) }
.site-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:.25rem 1.1rem }
.site-nav a:not(.btn){ color:var(--text); text-decoration:none; font-size:.95em; padding:.35rem 0; display:inline-block }
.site-nav a:not(.btn):hover{ color:var(--accent); text-decoration:underline }
@media (max-width:40rem){ .site-nav .hide-sm{ display:none } }
/* On small or zoomed screens, don't let a sticky header eat the page */
@media (max-width:40rem), (max-height:30rem){ .site-header{ position:static } }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  min-height:2.75rem; padding:.6rem 1.25rem; border-radius:999px;
  font:inherit; font-weight:650; text-decoration:none; text-align:center; cursor:pointer;
  border:1px solid var(--line); background:var(--surface); color:var(--text);
  transition:background-color .15s, filter .15s, transform .1s;
}
.btn:hover{ background:var(--hover); text-decoration:none }
.btn:active{ transform:translateY(1px) }
.btn-primary{ background:var(--accent); border-color:transparent; color:var(--accent-text); box-shadow:0 1px 2px rgba(0,0,0,.15) }
.btn-primary:hover{ background:var(--accent); filter:brightness(1.08) }
.btn-small{ min-height:2.25rem; padding:.35rem 1rem; font-size:.92em }
.btn-row{ display:flex; flex-wrap:wrap; gap:.75rem; align-items:center }

/* ---------- Sections ---------- */
main{ display:block }
.section{ padding-block:clamp(3rem, 2rem + 4vw, 5.5rem) }
.section-alt{ background:var(--surface); border-block:1px solid var(--line-soft) }
.section-head{ max-width:42rem; margin-bottom:2.25rem }
.section-head p{ color:var(--muted); font-size:1.08em }
.eyebrow{ display:inline-block; font-size:.85em; font-weight:650; color:var(--accent); margin-bottom:.5rem; letter-spacing:.02em }

/* ---------- Hero ---------- */
.hero{ padding-block:clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem) }
.hero .wrap{ display:grid; gap:clamp(2rem, 1rem + 4vw, 4rem); align-items:center }
@media (min-width:56rem){ .hero .wrap{ grid-template-columns:1.05fr 1fr } }
.hero-icon{ width:4.5rem; height:4.5rem; border-radius:1rem; margin-bottom:1.25rem; box-shadow:0 2px 6px rgba(0,0,0,.18) }
.lede{ font-size:clamp(1.12rem, 1rem + .5vw, 1.3rem); color:var(--muted); max-width:36rem; margin-bottom:1.75rem }
.hero-note{ font-size:.92em; color:var(--muted); margin-top:1rem }

/* Decorative chart in the hero (pure CSS, hidden from screen readers) */
.chart-art{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:1rem 1rem 1.25rem; overflow:hidden;
}
.chart-art .art-head{ display:grid; grid-template-columns:repeat(8, 1fr); border-bottom:1px solid var(--line-soft); padding-bottom:.4rem; margin-bottom:.6rem }
.chart-art .art-head span{ height:.45rem; margin-inline:20%; border-radius:999px; background:var(--line) }
.chart-art .rows{ position:relative; display:grid; gap:.55rem;
  background-image:repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--line-soft) calc(12.5% - 1px) 12.5%) }
.chart-art .row{ position:relative; height:1.15rem }
.chart-art .bar{ position:absolute; top:0; bottom:0; border-radius:.35rem; background:var(--c-blue) }
.chart-art .bar.phase{ background:var(--c-phase); height:.5rem; top:.32rem; border-radius:.15rem }
.chart-art .bar.crit{ background:var(--crit) }
.chart-art .bar.teal{ background:var(--c-teal) }
.chart-art .bar.green{ background:var(--c-green) }
.chart-art .bar .done{ position:absolute; inset:0 auto 0 0; background:rgba(0,0,0,.22); border-radius:inherit }
.chart-art .base{ position:absolute; bottom:-.32rem; height:.18rem; border-radius:999px; background:var(--baseline) }
.chart-art .ms{ position:absolute; top:.08rem; width:1rem; height:1rem; transform:rotate(45deg); background:var(--milestone); border-radius:.15rem }
.chart-art .today{ position:absolute; top:-.4rem; bottom:-.4rem; width:2px; background:var(--progress) }

/* ---------- Features ---------- */
.features{ list-style:none; margin:0; padding:0; display:grid; gap:1rem; grid-template-columns:repeat(auto-fill, minmax(min(100%, 17rem), 1fr)) }
.feature{ background:var(--bg); border:1px solid var(--line-soft); border-radius:var(--radius); padding:1.25rem 1.25rem 1rem }
.section-alt .feature{ background:var(--surface-2) }
.feature h3{ display:flex; align-items:center; gap:.6rem }
.feature p{ color:var(--muted); margin:0 }
.ficon{ flex:none; width:2rem; height:2rem; border-radius:.55rem; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent) }
.ficon svg{ width:1.15rem; height:1.15rem; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round }

/* ---------- Screenshots ---------- */
.shots{ display:grid; gap:1.25rem; grid-template-columns:repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin:0 }
.shot{ margin:0 }
.shot-wide{ grid-column:1 / -1 }
.shot-wide .placeholder{ aspect-ratio:2 / 1 }
.placeholder{
  display:grid; place-items:center; text-align:center; padding:1.5rem;
  aspect-ratio:16 / 10; border:2px dashed var(--line); border-radius:var(--radius);
  background:repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--bg) 14px 28px);
  color:var(--muted); font-weight:600;
}
.placeholder.phone{ aspect-ratio:9 / 16; max-height:32rem; width:auto; margin-inline:auto }
.shot figcaption{ color:var(--muted); font-size:.95em; margin-top:.6rem }

/* ---------- Pricing ---------- */
.prices{ display:grid; gap:1.25rem; grid-template-columns:repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); max-width:52rem }
.price-card{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:calc(var(--radius) + .25rem); padding:1.75rem; box-shadow:var(--shadow) }
.price-card.featured{ border:2px solid var(--accent) }
.price-card h3{ font-size:1.3em; margin-bottom:.25rem }
.price{ font-size:clamp(2.2rem, 1.8rem + 1.5vw, 2.75rem); font-weight:750; letter-spacing:-.02em; line-height:1.1; margin:.5rem 0 .25rem }
.price small{ font-size:.4em; font-weight:600; color:var(--muted); letter-spacing:0 }
.price-card ul{ margin:1rem 0 1.5rem; padding-left:1.25rem; color:var(--text) }
.price-card li{ margin-bottom:.35rem }
.price-card .btn{ margin-top:auto; width:100% }
.badge{ align-self:flex-start; font-size:.8em; font-weight:700; color:var(--accent-text); background:var(--accent); padding:.15rem .6rem; border-radius:999px; margin-bottom:.75rem }
.trial-box{ margin-top:2rem; max-width:52rem; display:flex; flex-wrap:wrap; gap:1rem 1.5rem; align-items:center; justify-content:space-between; padding:1.25rem 1.5rem; border-radius:var(--radius); background:var(--accent-soft); border:1px solid var(--line-soft) }
.trial-box p{ margin:0 }

/* ---------- FAQ ---------- */
.faq{ max-width:46rem }
.faq details{ border-bottom:1px solid var(--line) }
.faq details:first-of-type{ border-top:1px solid var(--line) }
.faq summary{ cursor:pointer; list-style:none; padding:1.1rem 2.25rem 1.1rem 0; position:relative; font-weight:650; font-size:1.05em }
.faq summary::-webkit-details-marker{ display:none }
.faq summary::after{ content:""; position:absolute; right:.4rem; top:50%; width:.6rem; height:.6rem; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:translateY(-70%) rotate(45deg); transition:transform .15s }
.faq details[open] summary::after{ transform:translateY(-25%) rotate(-135deg) }
.faq summary h3{ display:inline; font-size:inherit; font-weight:inherit; margin:0 }
.faq .answer{ padding:0 0 1.1rem; color:var(--muted) }
.faq .answer p:last-child{ margin-bottom:0 }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--line-soft); background:var(--surface); padding-block:2.5rem; font-size:.95em; color:var(--muted) }
.site-footer .wrap{ display:flex; flex-wrap:wrap; gap:1rem 2rem; justify-content:space-between; align-items:flex-start }
.site-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem 1.25rem }
.site-footer a{ color:var(--text) }
.site-footer p{ margin:0 }

/* ---------- Simple pages (thanks, legal) ---------- */
.page{ padding-block:clamp(2.5rem, 2rem + 3vw, 4.5rem) }
.page h1{ font-size:clamp(1.9rem, 1.4rem + 2vw, 2.6rem) }
.page h2{ font-size:1.4em; margin-top:2rem }
.page h3{ margin-top:1.5rem }
.page ul, .page ol{ padding-left:1.4rem }
.page li{ margin-bottom:.4rem }
.updated{ color:var(--muted); font-size:.95em }
.draft-note{ border:1px solid var(--warn-line); background:var(--warn-bg); color:var(--warn-text); border-radius:.75rem; padding:1rem 1.25rem; margin-bottom:2rem }
.draft-note p{ margin:0 }
.draft-note strong{ display:block; margin-bottom:.25rem }

.key-panel{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:1.5rem; margin:1.5rem 0 2rem }
.key-panel h2{ margin-top:0; font-size:1.2em }
.key-box{ display:block; width:100%; min-height:4.5rem; padding:.9rem 1rem; border-radius:.6rem; border:2px dashed var(--line); background:var(--surface-2); color:var(--muted);
  font:1em/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-break:break-all; resize:vertical }
.key-actions{ margin-top:1rem }
.status{ margin:.75rem 0 0; color:var(--muted); min-height:1.6em }
.steps{ counter-reset:step; list-style:none; padding:0 !important; display:grid; gap:.75rem }
.steps li{ counter-increment:step; position:relative; padding:.85rem 1rem .85rem 3.4rem; background:var(--surface); border:1px solid var(--line-soft); border-radius:.75rem; margin:0 }
.steps li::before{ content:counter(step); position:absolute; left:1rem; top:.8rem; width:1.7rem; height:1.7rem; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:var(--accent-text); font-weight:700; font-size:.9em }
kbd, .ui{ font-family:inherit; font-weight:650; color:var(--text); background:var(--surface-2); border:1px solid var(--line); border-radius:.35rem; padding:0 .35rem; -webkit-box-decoration-break:clone; box-decoration-break:clone }

/* ---------- Print ---------- */
@media print{
  .site-header, .skip, .btn, .chart-art{ display:none !important }
  body{ background:#fff; color:#000 }
  .section-alt, .site-footer{ background:#fff }
}
