/* SideKick site styles. Shared by the landing page (body.landing) and the generated
   privacy/support pages. System fonts only; no external requests.
   Brand colours follow SKColor in SideKickApp/Sources/Core/DesignSystem/Theme.swift;
   text-on-white greens are darkened slightly so small text meets WCAG AA (4.5:1). */
:root {
  --ink: #0B0F0E; --ink2: #4F5754; --line: #E1E5E3; --bg: #FFFFFF; --bg2: #F6F7F6;
  --surface: #FFFFFF;
  --accent: #127A3F;          /* links + small green text (≈5.4:1 on white) */
  --brand: #15924B;           /* SKColor.green600 */
  --brand-hi: #1AA856;        /* SKColor.green500 */
  --brand-tint: #E8F6EE;      /* SKColor.green50 */
  --btn-bg: #127F42; --btn-ink: #FFFFFF; --btn-hover: #0E6B37;
  --focus: #2C6FD6;
  --ph-bg: #fff1a8; --ph-ink: #6b4e00; --note: #F1F5F2;
  --shadow: 0 18px 50px -18px rgba(11, 15, 14, .35);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2F5F3; --ink2: #A9B1AD; --line: #2A312E; --bg: #0F1311; --bg2: #141A17;
    --surface: #191E1C;
    --accent: #4CC27F; --brand: #22B061; --brand-hi: #2BC06E; --brand-tint: #123122;
    --btn-bg: #2BC06E; --btn-ink: #04140A; --btn-hover: #4CC27F;
    --focus: #8DB8FF;
    --ph-bg: #5a4a00; --ph-ink: #ffe680; --note: #1A211D;
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible, video:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Generated legal pages (privacy.html, support.html) ---------- */
body:not(.landing) header, body:not(.landing) main, body:not(.landing) footer {
  max-width: 720px; margin: 0 auto; padding: 0 20px;
}
body:not(.landing) header {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
body:not(.landing) header nav a { margin-left: 16px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 28px 0 8px; }
h2 { font-size: 1.3rem; margin: 28px 0 8px; }
h3 { font-size: 1.1rem; margin: 22px 0 6px; }
ul { padding-left: 1.3em; }
li { margin: 6px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
code { font-size: 0.9em; background: var(--note); padding: 1px 5px; border-radius: 4px; }
blockquote, .note { background: var(--note); border-left: 4px solid var(--accent);
                    margin: 12px 0; padding: 10px 14px; border-radius: 6px; }
blockquote p { margin: 0; }
mark.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 4px; border-radius: 4px;
          font-weight: 700; outline: 1px dashed var(--ph-ink); }
.draft { background: var(--ph-bg); color: var(--ph-ink); padding: 10px 14px; border-radius: 8px;
         margin-top: 20px; font-weight: 600; }
body:not(.landing) footer { color: var(--ink2); font-size: 0.85rem; padding-top: 28px; padding-bottom: 36px; }

/* ---------- Landing page ---------- */
.landing h1, .landing h2, .landing h3 { letter-spacing: -0.015em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.center img { margin: 0 auto 8px; border-radius: 18px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--surface);
        padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
               backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
               border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.site-header .brand { display: inline-flex; align-items: center; gap: 8px; }
.site-header .brand img { border-radius: 7px; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { color: var(--ink2); text-decoration: none; font-size: .95rem; padding: 6px 8px; border-radius: 8px; }
.site-header nav a:hover { color: var(--ink); background: var(--note); }
@media (max-width: 560px) {
  .site-header nav a:not([href="#faq"]):not([href="support.html"]) { display: none; }
}

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700;
           color: var(--accent); margin: 0 0 6px; }
.lede { font-size: 1.2rem; color: var(--ink2); max-width: 34em; margin: 0 0 22px; }
.section-lede { color: var(--ink2); font-size: 1.08rem; margin: 0 0 18px; }
.fineprint { color: var(--ink2); font-size: .9rem; margin: 14px 0 0; }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
       padding: 0 22px; border-radius: 14px; font-weight: 650; font-size: 1.02rem;
       text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink);
               box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-primary[aria-disabled="true"] { background: var(--note); color: var(--ink2); box-shadow: none;
                                     border-color: var(--line); cursor: default; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink2); }

/* Phone frames around screenshots */
.phone { margin: 0; border-radius: 34px; padding: 7px; background: #0B0F0E; box-shadow: var(--shadow);
         max-width: 300px; width: 100%; }
@media (prefers-color-scheme: dark) { .phone { box-shadow: 0 0 0 1px #313b36, var(--shadow); } }
.phone img, .phone video { border-radius: 28px; width: 100%; background: #F6F7F6; }

/* Hero */
.hero { padding: 36px 0 24px; background:
        radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-icon { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 18px;
             box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); line-height: 1.06; margin: 0 0 14px; }
.hero-phones { position: relative; display: flex; justify-content: center; }
.hero-phones .phone-main { max-width: 290px; position: relative; z-index: 2; }
.phone-side { display: none; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .hero-phones { min-height: 600px; align-items: center; }
  .phone-side { display: block; position: absolute; max-width: 230px; opacity: .95; }
  .phone-left { transform: translateX(-62%) rotate(-7deg) scale(.92); }
  .phone-right { transform: translateX(62%) rotate(7deg) scale(.92); }
}

/* Generic sections */
.section { padding: 56px 0; }
.section h2, .features > .wrap h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 10px; }

/* How it works */
.how-grid { display: grid; gap: 36px; align-items: center; }
.how-grid .phone-inline { max-width: 260px; margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 66px; margin: 0;
            background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px;
                    border-radius: 50%; display: grid; place-items: center; font-weight: 800;
                    background: var(--brand-tint); color: var(--accent); }
.steps h3 { margin: 4px 0 4px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--ink2); }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1.4fr 1fr; } }

/* Features */
.features { padding: 24px 0 8px; }
.features > .wrap { padding-top: 32px; }
.feature { padding: 44px 0; }
.feature.alt { background: var(--bg2); }
.feature-grid { display: grid; gap: 28px; align-items: center; }
.feature-grid .phone { margin: 0 auto; max-width: 280px; }
.feature h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 10px; }
.feature-copy p { color: var(--ink2); margin: 0 0 12px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
                    background: var(--brand-tint)
                      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2315924B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.note-inline { background: var(--brand-tint); color: var(--ink) !important; padding: 12px 14px; border-radius: 12px; }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .feature.alt .feature-copy { order: 2; }
}

/* Demo */
.demo { background: var(--bg2); }
.demo-grid { display: grid; gap: 28px; align-items: center; }
.phone-video { max-width: 300px; margin: 0 auto; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1.2fr 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; padding: 14px 32px 14px 0;
               list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink2); }

/* Final CTA + footer */
.final-cta { padding-bottom: 72px; }
.final-cta h2 { margin-top: 6px; }
.site-footer { border-top: 1px solid var(--line); color: var(--ink2); font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
        padding-top: 22px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.foot nav { display: flex; gap: 10px; align-items: center; }
.foot p { margin: 0; }
