/* Inkling marketing site. Clocktower house style: warm paper + terracotta. */

:root {
  --page:      #F7F4EE;
  --surface:   #FFFFFF;
  --surface2:  #F1ECE2;
  --ink:       #27221B;
  --muted:     #6F665A;
  --faint:     #9A9082;
  --hairline:  rgba(39, 34, 27, 0.12);
  --accent:    #C9704F;
  --accent-ink:#FFFFFF;
  --ground:    #EDE7DB;
  --radius:    14px;
  --maxw:      1080px;
  --font-display: "Gabarito", system-ui, -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page:      #1B1813;
    --surface:   #262019;
    --surface2:  #2E2820;
    --ink:       #F2ECE1;
    --muted:     #B3A899;
    --faint:     #7E7466;
    --hairline:  rgba(242, 236, 225, 0.14);
    --accent:    #DB8A66;
    --accent-ink:#1B1813;
    --ground:    #221E18;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }

kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.1em 0.45em;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { font-size: 1.1rem; padding: 0.9rem 2rem; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.2rem; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 0.5rem 1.1rem; font-size: 0.95rem; }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 1.4rem 0 2rem; max-width: 34ch; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: 0.9rem; color: var(--faint); }

/* Hero demo */
.demo-window {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -28px rgba(39, 34, 27, 0.4);
  overflow: hidden;
}
.demo-bar {
  display: flex; gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--hairline);
}
.demo-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--faint); opacity: 0.6; }
.demo-body { padding: 1.6rem 1.5rem 1.8rem; }
.demo-text { font-size: 1.1rem; }
.ghost { color: var(--faint); }
.demo-hint { margin-top: 1.4rem; font-size: 0.85rem; color: var(--muted); }

/* Sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-top: 0.8rem; font-size: 1.1rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); }

/* Privacy band */
.section-accent { background: var(--ground); max-width: none; }
.privacy { max-width: 720px; margin: 0 auto; text-align: center; }
.privacy-lede { font-size: 1.25rem; color: var(--muted); margin-top: 1.4rem; }

/* Pricing */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.8rem;
  align-items: start;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tier-hero {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 20px 48px -26px rgba(201, 112, 79, 0.6);
}
.tier-badge {
  position: absolute;
  top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.tier-name { font-size: 1.15rem; }
.price { font-family: var(--font-mono); display: flex; align-items: baseline; gap: 0.35rem; margin: 0.2rem 0; }
.price .amount { font-size: 1.9rem; font-weight: 500; color: var(--ink); }
.price .per { font-size: 0.9rem; color: var(--faint); }
.tier-tag { color: var(--muted); font-size: 0.95rem; min-height: 2.6em; }
.tier-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin: 0.4rem 0 1.2rem; }
.tier-list li { font-size: 0.92rem; color: var(--muted); padding-left: 1.3rem; position: relative; }
.tier-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tier-btn { margin-top: auto; text-align: center; }

/* Download */
.section-download { text-align: center; }
.section-download .btn { margin-top: 1.8rem; }

/* FAQ */
.faq { max-width: 720px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: 0.6rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.4rem 1.3rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 0;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 1rem; }

/* Footer */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.footer-note { color: var(--muted); font-size: 0.95rem; }
.footer-links { display: flex; gap: 1.4rem; font-size: 0.9rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--faint); font-size: 0.85rem; }
.footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { color: var(--accent); }

/* Legal pages (privacy, terms) */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
.legal p { color: var(--muted); margin-bottom: 0.9rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal .meta { color: var(--faint); font-size: 0.9rem; margin-top: 0.4rem; }
.legal .note {
  background: var(--surface2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  margin: 1.4rem 0 0.5rem;
}
.legal ul { margin: 0 0 0.9rem 1.2rem; color: var(--muted); }
.legal li { margin-bottom: 0.35rem; }

/* Responsive */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .lede { max-width: none; }
  .cards { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tier-hero { order: -1; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .tiers { grid-template-columns: 1fr; }
}
