/* ─────────────────────────────────────────────────────────────────────────────
 * Pliko marketing site — shared styles
 *
 * Keep in sync with ios-app/constants/colors.ts. The site reads like the
 * app feels: warm cream paper, oxblood accents, Playfair display heads,
 * DM Sans body. Calm and bookish, not marketing-bro.
 *
 * No build step on purpose. Write CSS like a human.
 * ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Colors — mirrored from ios-app/constants/colors.ts */
  --bg:           #f5efe4;
  --surface:      #fbf6eb;
  --border:       #e6dccb;
  --text:         #1f1410;
  --subtext:      #4a3a32;
  --muted:        #8f7f70;
  --faint:        #bfb2a0;
  --accent:       #6d1f28;
  --accent-deep:  #4a1820;
  --green:        #2f5d3a;
  --blue:         #2a466d;
  --amber:        #a8752a;

  /* Type */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --container:   1100px;
  --gutter:      24px;
  --gutter-lg:   32px;
}

/* ── Reset / base ─────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color .15s ease;
}
a:hover { color: var(--accent-deep); }

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

::selection {
  background: var(--accent);
  color: var(--surface);
}

/* ── Layout primitives ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 96px 0;
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

.section--tight  { padding: 64px 0; }
.section--narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ── Typography ───────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 600; }

p {
  margin: 0 0 16px;
  color: var(--subtext);
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--subtext);
}
@media (max-width: 720px) {
  .lead { font-size: 18px; }
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.muted { color: var(--muted); }

/* ── Header ───────────────────────────────────────────────────────── */

.site-header {
  padding: 28px 0;
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header a.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.site-header a.brand:hover { color: var(--accent); }

.site-header img.brand__icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.site-header nav a {
  color: var(--subtext);
  text-decoration: none;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .site-header nav { gap: 18px; font-size: 14px; }
  .site-header a.brand { font-size: 20px; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 96px;
  text-align: left;
}
@media (min-width: 720px) {
  .hero { padding: 120px 0 128px; }
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 14ch;
}

.hero .lead {
  max-width: 56ch;
  margin-bottom: 36px;
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent);
  color: var(--surface);
}
.btn--primary:hover { background: var(--accent-deep); color: var(--surface); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* App Store badge — uses the standard "Download on the App Store" SVG.
 * The link wraps an <img>; height drives the visual size. */
.appstore-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  transition: transform .12s ease, opacity .15s ease;
}
.appstore-link:hover { transform: translateY(-1px); opacity: .92; }
.appstore-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.appstore-link img {
  display: block;
  height: 53px;
  width: auto;
}

/* ── Features ─────────────────────────────────────────────────────── */

.features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}
@media (max-width: 920px) {
  .features__grid { grid-template-columns: 1fr; gap: 40px; }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 4px;
}
.feature p { margin: 0; color: var(--subtext); font-size: 16px; }

.feature__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(56px, 6vw, 80px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* ── Screenshots ──────────────────────────────────────────────────── */

.shots {
  text-align: center;
}

.shots__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 920px) {
  .shots__strip { grid-template-columns: 1fr; gap: 28px; }
}

.shot {
  background: var(--surface);
  border: 1px dashed var(--faint);
  border-radius: 28px;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.shot__label {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--subtext);
  margin-bottom: 6px;
}
.shot__hint { color: var(--faint); font-size: 12px; }

/* ── Article (privacy / terms / support body) ─────────────────────── */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px var(--gutter) 96px;
}

.article h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 8px;
}
.article .article__meta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

.article h2 {
  font-size: 26px;
  margin-top: 56px;
  margin-bottom: 12px;
  padding-top: 0;
}
.article h2:first-of-type { margin-top: 0; }

.article h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--text);
}

.article p, .article li {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--subtext);
}

.article ul {
  padding-left: 22px;
  margin: 12px 0 16px;
}
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent); }

.article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.article strong, .article b {
  color: var(--text);
  font-weight: 600;
}

.article em, .article i { color: var(--text); }

.article a { color: var(--accent); }

/* ── Callouts / FAQ blocks ────────────────────────────────────────── */

.faq {
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: -2px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 24px;
  color: var(--muted);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: '–'; }

.faq details[open] summary { color: var(--accent); }

.faq .faq__answer {
  padding-top: 16px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--subtext);
}
.faq .faq__answer p:last-child { margin-bottom: 0; }

/* ── Footer ───────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 56px;
  margin-top: 0;
  font-size: 14px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-footer .brand img {
  width: 28px; height: 28px;
  border-radius: 6px;
}
.site-footer p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.site-footer nav a {
  color: var(--subtext);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--accent); }
.site-footer__legal {
  width: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ── Misc utility ─────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.center { text-align: center; }
