/*
  Wordkowski site styles.
  Single stylesheet shared by all three pages (/, /support, /privacy).

  Color tokens mirror the app's actual SwiftUI palette (see APP_INFO.md).
  Light values are the default; the dark block below overrides them for
  prefers-color-scheme: dark. To retheme, edit the two :root blocks only —
  everything else reads from the custom properties.
*/

:root {
  --bg: #f7f5ed;
  --surface: #fffffc;
  --text: #242421;
  --text-muted: rgba(36, 36, 33, 0.66);
  --border: rgba(36, 36, 33, 0.14);
  --green: #6b9e70;
  --amber: #d1a652;
  --gray: #a8a39e;
  --btn-text: #17241b;
  --focus-ring: #242421;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a1c;
    --surface: #242629;
    --text: #f0f0ed;
    --text-muted: rgba(240, 240, 237, 0.66);
    --border: rgba(240, 240, 237, 0.16);
    --green: #5c8c63;
    --amber: #b8944d;
    --gray: #47474a;
    --btn-text: #10160f;
    --focus-ring: #f0f0ed;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose {
  max-width: 40em;
}

/* ---------- header ---------- */

.site-header {
  padding: 1.5rem 0 0.5rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}

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

/* ---------- hero ---------- */

.hero {
  padding: 3rem 0 4rem;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-media {
  max-width: 300px;
  justify-self: end;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-media {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
    justify-self: center;
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 4vw + 1.25rem, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 1.1rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34em;
  margin: 0 0 2rem;
}

.hook-list {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.65rem 2rem;
}

@media (max-width: 420px) {
  .hook-list {
    grid-template-columns: auto;
  }
}

.hook-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.tile-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: none;
}

.tile-dot.green {
  background: var(--green);
}

.tile-dot.amber {
  background: var(--amber);
}

.tile-dot.gray {
  background: var(--gray);
}

.hero-media {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 10px;
  background: var(--surface);
}

.hero-media img {
  border-radius: 14px;
  width: 100%;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 14px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: var(--btn-text);
}

.btn-primary[aria-disabled="true"] {
  cursor: default;
  opacity: 0.92;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
}

.cta-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.7rem 0 0;
}

/* ---------- sections ---------- */

section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.5rem, 1.4vw + 1.1rem, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 2.5rem;
}

@media (max-width: 640px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-list .tile-dot {
  margin-top: 0.45rem;
}

.feature-list p {
  margin: 0;
}

.feature-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

/* ---------- screenshots ---------- */

.shot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 640px;
}

@media (max-width: 640px) {
  .shot-row {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}

.shot {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px;
  background: var(--surface);
}

.shot img {
  border-radius: 12px;
}

.shot figcaption {
  margin: 0.9rem 0.35rem 0.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

figure {
  margin: 0;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* ---------- simple content pages (support / privacy) ---------- */

.page-head {
  padding: 2.5rem 0 1rem;
}

.page-head h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.page-head .hero-sub {
  margin-bottom: 0;
}

.page-body {
  padding: 1.5rem 0 4rem;
}

.page-body h2 {
  margin-top: 0;
}

.page-body section {
  border-top: none;
  padding: 0 0 2.5rem;
}

.page-body p,
.page-body ul {
  color: var(--text);
}

.page-body ul {
  padding-left: 1.25rem;
}

.page-body li + li {
  margin-top: 0.35rem;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--green);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "\2212";
}

.faq-item p {
  margin: 0.75rem 0 0 1.1em;
  color: var(--text-muted);
}

.mail-cta {
  margin-top: 1rem;
}

/* ---------- privacy page ---------- */

.privacy-doc h1 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.25rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.privacy-doc h2 {
  font-size: 1.3125rem;
  margin: 2.25rem 0 0.85rem;
}

.privacy-doc p {
  margin: 0 0 1rem;
}

.privacy-doc ul {
  margin: 0 0 1rem;
}

.effective-date {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.back-link:hover {
  color: var(--text);
}
