/* Did It! public site — plain CSS, no build step, no external requests.
   Colours follow the app's light palette and blue accent; dark mode
   follows the visitor's system setting. */

:root {
  --bg: #f7f9fc;
  --bg-alt: #eef3fb;
  --panel: #ffffff;
  --text: #16203a;
  --muted: #5b6680;
  --line: #dde4f0;
  --accent: #5b8cff;
  --accent-strong: #3f6fe6;
  --accent-contrast: #ffffff;
  --shadow: 0 1px 2px rgb(22 32 58 / 6%), 0 12px 32px rgb(22 32 58 / 10%);
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1422;
    --bg-alt: #141b2d;
    --panel: #1a2236;
    --text: #e8edf7;
    --muted: #9aa6bf;
    --line: #28324a;
    --accent: #7aa2ff;
    --accent-strong: #9bb9ff;
    --accent-contrast: #0f1422;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--panel);
  padding: 8px 12px;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  nav {
    display: none;
  }
  .header-inner .btn-small {
    margin-left: auto;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Hero --- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 1.5em;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* --- Screenshots --- */
.shot {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-hero {
  max-height: 560px;
}

.shot-narrow {
  max-width: 440px;
  justify-self: center;
  width: 100%;
}

.shot-phone {
  max-width: 300px;
  border-radius: 28px;
  justify-self: center;
  width: 100%;
}

/* --- Sections --- */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40em;
  margin-bottom: 2em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* --- Features --- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin: clamp(40px, 6vw, 72px) 0;
}

.feature-flip .feature-copy {
  order: 2;
}

.feature-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feature-flip .feature-copy {
    order: 0;
  }
}

.more {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}

.more li {
  color: var(--muted);
  padding-left: 22px;
  position: relative;
}

.more li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.more strong,
.plain strong {
  color: var(--text);
}

@media (max-width: 700px) {
  .more {
    grid-template-columns: 1fr;
  }
}

/* --- Phone --- */
.phone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.phone-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 30em;
}

@media (max-width: 800px) {
  .phone {
    grid-template-columns: 1fr;
  }
}

/* --- Privacy --- */
.plain {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.plain li {
  color: var(--muted);
  font-size: 1.05rem;
}

/* --- Closing & footer --- */
.closing {
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--muted);
}
