/* SideKin website: one shared stylesheet. Apple-minimal: black, white and grey carry the page;
   SideKin blue is the one accent (buttons, links); the orange lives only in the logo. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --line: #e5e5ea;
  --brand: #2F6FE0;        /* SideKin blue */
  --brand-deep: #2559C4;   /* SideKin deep blue */
  --on-brand: #ffffff;
  --brand-soft: #eaf1fd;
  --glass: rgba(255,255,255,.82);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 40px rgba(0,0,0,.08);
  --device: #e8e8ed;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 140px);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73;
    --bg: #101012; --surface: #1c1c1e; --line: #2e2e32;
    --brand-deep: #7ea7f5; --brand-soft: #1b2a47;
    --glass: rgba(16,16,18,.8); --shadow: 0 1px 2px rgba(0,0,0,.5), 0 10px 40px rgba(0,0,0,.45); --device: #2c2c30;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73;
  --bg: #101012; --surface: #1c1c1e; --line: #2e2e32;
  --brand-deep: #7ea7f5; --brand-soft: #1b2a47;
  --glass: rgba(16,16,18,.8); --shadow: 0 1px 2px rgba(0,0,0,.5), 0 10px 40px rgba(0,0,0,.45); --device: #2c2c30;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; margin-right: -4px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.head-r { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav { display: none; } .head-r { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-deep); text-decoration: none; }
:root[data-theme="dark"] .btn:hover { background: #2559C4; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); }
.link-more { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* theme dropdown */
.theme-dd { position: relative; }
.theme-btn { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 8px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn .icon.sm { width: 14px; height: 14px; color: var(--muted); }
.theme-menu { position: absolute; right: 0; top: 46px; width: 210px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.theme-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; font-weight: 500; font-size: .95rem; }
.theme-menu button:hover { background: var(--surface); }
.theme-menu button span { flex: 1; }
.theme-menu small { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.theme-menu .tick { color: var(--brand-deep); }

/* ---------- sections ---------- */
section { padding: var(--section) 0; }
.alt { background: var(--surface); }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--brand-deep); letter-spacing: 0; margin: 0 0 14px; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.07; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.25; font-weight: 600; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); line-height: 1.5; max-width: 40ch; margin: 22px 0 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* hero */
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: 0; overflow: hidden; }
.hero h1 { max-width: 14ch; margin: 0 auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.center .actions { justify-content: center; }
.hero-art { position: relative; margin: clamp(48px, 8vw, 88px) auto 0; max-width: 1000px; }
.hero-art .laptop { border-radius: 18px 18px 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow); background: var(--device); }
.hero-art .phone { position: absolute; right: 2%; bottom: -1px; width: 25%; min-width: 150px; }
@media (max-width: 640px) {
  .hero { padding-bottom: 56px; }
  .hero-art .laptop { display: none; }
  .hero-art .phone { position: static; width: min(270px, 72%); margin: 0 auto; }
}

/* device frames: style the chrome around the real screenshot, never the screenshot itself */
.phone { border-radius: 34px; padding: 8px; background: var(--device); box-shadow: var(--shadow); }
.phone img { border-radius: 27px; }
.screen { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--device); }

/* the problem */
.statement { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; max-width: 22ch; margin: 0 auto; text-align: center; }
.statement span { color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 72px); }
.quote { background: var(--bg); border-radius: 22px; padding: 28px; margin: 0; }
.alt .quote { background: var(--bg); }
.quote p { margin: 0 0 14px; font-size: 1.08rem; line-height: 1.5; }
.quote cite { font-style: normal; font-size: .85rem; color: var(--muted); }
.note { font-size: .82rem; color: var(--faint); margin-top: 18px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: var(--section); }
.feature.flip .f-text { order: 2; }
.feature .f-text p { color: var(--muted); font-size: 1.1rem; margin: 16px 0 0; max-width: 44ch; }
.feature .f-art.phone-art { display: flex; justify-content: center; }
.feature .f-art.phone-art .phone { width: min(300px, 70%); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--brand-deep); margin-top: 3px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .f-text { order: 0; } }

/* steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 64px); }
.step { background: var(--bg); border-radius: 22px; padding: 30px; }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; display: grid; place-items: center; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* two audiences */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(40px, 6vw, 64px); }
.card { background: var(--surface); border-radius: 22px; padding: clamp(26px, 4vw, 40px); }
.card h3 { margin-bottom: 4px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* form */
.form { max-width: 640px; margin: clamp(36px, 5vw, 56px) auto 0; background: var(--bg); border-radius: 26px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.field textarea { padding: 14px 16px; min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .small { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-done { text-align: center; padding: 20px 0; }
.form-done .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; margin: 0 auto 14px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: .88rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-foot nav { display: flex; gap: 22px; margin-left: auto; }
.site-foot a { color: var(--muted); }

/* plain pages (privacy) */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose .lead { max-width: none; }

/* gentle reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }

/* ---------- v2 layout (ideas from care-software sites, kept Apple-minimal) ---------- */
.narrow { max-width: 820px; }
section.tight { padding-top: clamp(32px, 5vw, 56px); }
.h-sm { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.025em; margin-bottom: 22px; }

/* hero: words on the left, one phone on the right */
.hero2 { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero2-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero2 h1 { max-width: 12ch; }
.hero2 .lead { max-width: 34ch; }
.hero2-art { display: flex; justify-content: center; }
.hero2-art .phone { width: min(310px, 80%); transform: rotate(2deg); }
@media (max-width: 860px) {
  .hero2-in { grid-template-columns: 1fr; text-align: center; }
  .hero2 h1, .hero2 .lead { margin-left: auto; margin-right: auto; }
  .hero2 .actions { justify-content: center; }
  .hero2-art .phone { width: min(260px, 70%); transform: none; }
}

/* what kind of service: rounded bars that open */
.services { display: grid; gap: 10px; }
.svc { border-radius: 18px; background: var(--surface); overflow: hidden; }
.svc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.08rem; cursor: pointer; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary .icon { color: var(--muted); transition: transform .2s; }
.svc[open] summary .icon { transform: rotate(180deg); }
.svc[open] { background: var(--brand-soft); }
.svc-body { padding: 0 24px 22px; }
.svc-body p { margin: 0 0 12px; color: var(--ink); max-width: 62ch; }

/* how it helps: simple tiles, no screenshots */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.tile { background: var(--surface); border-radius: 22px; padding: 26px; }
.tile .ti { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); color: var(--brand-deep); display: grid; place-items: center; margin-bottom: 16px; }
.tile .ti .icon { width: 22px; height: 22px; }
.tile h3 { font-size: 1.12rem; }
.tile p { color: var(--muted); margin: 6px 0 0; font-size: .98rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

.staff-shot { margin: clamp(36px, 5vw, 56px) auto 0; max-width: 980px; }

/* FAQs */
.faqs { margin-top: 28px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.08rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .2s; }
.faq[open] summary .icon { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; }
