/* Twisted Sparrow — placeholder brand. Change the colours and fonts here and the whole site follows. */
:root {
  --ink: #1d2433;          /* main text, dark sections */
  --ink-soft: #4a5468;     /* secondary text */
  --paper: #fbf8f3;        /* page background (warm off-white) */
  --card: #ffffff;
  --line: #e7e1d7;
  --accent: #e0643f;       /* placeholder brand colour: warm terracotta */
  --accent-dark: #b9492a;
  --accent-soft: #fbe6dd;
  --accent-text: #b9492a;  /* accent colour for text on the page background */
  --accent-hover: #b9492a; /* button hover */
  --sky: #2f6f8f;          /* secondary colour */
  --sky-soft: #e1eef4;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(var(--shadow-rgb),.06), 0 8px 24px rgba(var(--shadow-rgb),.06);
  --head: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --alt: #f4efe6;          /* alternate section background */
  --deep: #1d2433;         /* dark bands and footer */
  --frame: #1d2433;        /* phone frames */
  --head-bg: rgba(251,248,243,.88);
  --field: #ffffff;
  --bar: #efeae1;
  --dot: #d5cdc0;
  --shadow-rgb: 29,36,51;
  color-scheme: light;
}

/* Dark theme: follows the device setting unless the visitor picks one with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ece8e1; --ink-soft: #a9b0bf; --paper: #14181f; --card: #1c222c; --line: #2c3442;
    --accent-soft: #3a2620; --accent-text: #f29a76; --accent-hover: #c8532e;
    --sky: #86bedb; --sky-soft: #1d2f3a;
    --alt: #181d25; --deep: #0d1015; --frame: #0b0d12; --head-bg: rgba(20,24,31,.85);
    --field: #12161c; --bar: #252c38; --dot: #3a4352; --shadow-rgb: 0,0,0;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #ece8e1; --ink-soft: #a9b0bf; --paper: #14181f; --card: #1c222c; --line: #2c3442;
  --accent-soft: #3a2620; --accent-text: #f29a76; --accent-hover: #c8532e;
  --sky: #86bedb; --sky-soft: #1d2f3a;
  --alt: #181d25; --deep: #0d1015; --frame: #0b0d12; --head-bg: rgba(20,24,31,.85);
  --field: #12161c; --bar: #252c38; --dot: #3a4352; --shadow-rgb: 0,0,0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--head-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 12px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--accent-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-text); }
.nav .btn { margin-left: 6px; }
.theme-btn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .theme-btn { margin-left: auto; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 10px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 15px 24px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.nav .btn { padding: 11px 18px; color: #fff; }
.nav .btn:hover { background: var(--accent-hover); color: #fff; }

/* Sections */
section { padding: 88px 0; }
.eyebrow { display: inline-block; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.alt { background: var(--alt); }
.dark { background: var(--deep); color: #eef0f5; }
.dark .lede, .dark p { color: #c4cad8; }
.dark .eyebrow { color: #f3a184; }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 .hl { color: var(--accent); white-space: nowrap; }
.hero .lede { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.hero-art { position: relative; min-height: 420px; }
.hero-art .shot-desktop { position: absolute; right: -60px; top: 10px; width: 118%; max-width: none; border-radius: 14px; box-shadow: 0 30px 60px rgba(var(--shadow-rgb),.18); border: 1px solid var(--line); }
.hero-art .shot-phone { position: absolute; left: 0; bottom: -10px; width: 34%; border-radius: 26px; border: 6px solid var(--frame); box-shadow: 0 24px 50px rgba(var(--shadow-rgb),.28); background: var(--frame); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; }
.blob.a { width: 380px; height: 380px; background: var(--accent-soft); right: -80px; top: -60px; }
.blob.b { width: 220px; height: 220px; background: var(--sky-soft); left: -40px; bottom: -40px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-art .shot-desktop { right: -18%; width: 100%; }
}

/* Images that swap with the theme */
.theme-dark, :root[data-theme="dark"] .theme-light { display: none; }
:root[data-theme="dark"] .theme-dark { display: block; }

/* Cards / grids */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; }
.card.sky .icon { background: var(--sky-soft); color: var(--sky); }
.card p { color: var(--ink-soft); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 1.1rem/42px var(--head); text-align: center; }
.steps h3 { margin-bottom: .35em; }
.steps p { color: #c4cad8; font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Featured work */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 44px; box-shadow: var(--shadow); }
.feature .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.tag { font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--sky-soft); color: var(--sky); }
.feature-shots { position: relative; aspect-ratio: 5 / 4; }
.feature-shots img { position: absolute; border-radius: 12px; box-shadow: 0 18px 40px rgba(var(--shadow-rgb),.16); }
.feature-shots .d { width: 88%; right: 0; top: 0; border: 1px solid var(--line); }
.feature-shots .p { width: 30%; left: 0; bottom: 0; border-radius: 20px; border: 5px solid var(--ink); background: var(--frame); }
.feature-shots .p2 { width: 30%; left: 33%; bottom: -4%; border-radius: 20px; border: 5px solid var(--frame); background: var(--frame); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; padding: 26px; gap: 30px; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position: relative; }
.plan.pop { border: 2px solid var(--accent); }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; }
.plan h3 { font-size: 1.35rem; margin-bottom: .2em; }
.plan .for { color: var(--ink-soft); font-size: .95rem; min-height: 3.1em; }
.price { font-family: var(--head); font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 14px 0 4px; }
.price small { font-family: var(--body); font-size: .95rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.price .from { display: block; font-family: var(--body); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 6px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: .97rem; border-top: 1px dashed var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.note { font-size: .92rem; color: var(--ink-soft); }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 6px; }

/* Case study */
.cs-hero { padding: 64px 0 40px; }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.cs-meta div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.cs-meta dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.cs-meta dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 800px) { .cs-meta { grid-template-columns: 1fr 1fr; } }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(var(--shadow-rgb),.14); background: var(--card); }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bar); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.browser .bar span { margin-left: 10px; font-size: .8rem; color: var(--ink-soft); background: var(--field); padding: 3px 12px; border-radius: 999px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .phones { grid-template-columns: repeat(2, 1fr); } }
.phone { margin: 0; }
.phone img { border-radius: 24px; border: 6px solid var(--frame); background: var(--frame); box-shadow: 0 18px 36px rgba(var(--shadow-rgb),.18); }
.phone figcaption { text-align: center; font-size: .9rem; color: var(--ink-soft); margin-top: 12px; }
.dark .phone figcaption { color: #c4cad8; }
.dark .phone img { border-color: #3a4357; background: #3a4357; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.callout p:last-child { margin: 0; }
.demo-note { font-size: .88rem; color: var(--ink-soft); font-style: italic; }
.dark .demo-note { color: #9aa3b5; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; border-radius: 28px; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .25em; }
.cta-band p { margin: 0; color: #fde9e1; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: #b9492a; }
.cta-band .btn:hover { background: var(--deep); color: #fff; }
@media (max-width: 600px) { .cta-band { padding: 40px 26px; } }

/* Lists */
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; padding-top: 0; }
.side-list svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 3px; }

/* Footer */
.site-foot { background: var(--deep); color: #b9c0cf; padding: 56px 0 36px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot .brand { color: #fff; margin-bottom: 12px; }
.site-foot h4 { color: #fff; font: 600 .85rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: #dde2ec; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-base { border-top: 1px solid #343c4e; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
