/* TMTN Studio — Werkstatt redesign · single-file production CSS
   All design tokens inlined. No external imports beyond Google Fonts (loaded in HTML). */

:root {
  /* Surface */
  --paper: #F5F1EA;
  --paper-deep: #EBE5DA;
  --paper-bright: #FFFFFF;
  /* Ink */
  --ink: #15243D;
  --ink-deep: #0B1626;
  --ink-soft: #5A6A82;
  --ink-faint: #8A95A8;
  /* Accent */
  --clay: #B85D3A;
  --clay-deep: #934628;
  --clay-soft: #F2DCCB;
  /* Semantic */
  --moss: #2D6A4F;
  --moss-soft: #DCEAE2;
  --rust: #9C2A1F;
  --rust-soft: #F4D8D3;
  /* Rule */
  --rule: #DCD4C7;
  --grid: rgba(21,36,61,0.08);
  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* Layout */
  --container: 1120px;
  --container-narrow: 760px;
  /* Radius */
  --r-1: 4px;
  --r-2: 8px;
  --r-pill: 999px;
  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(21,36,61,.04), 0 2px 8px rgba(21,36,61,.04);
  --shadow-md: 0 4px 16px rgba(21,36,61,.06), 0 2px 4px rgba(21,36,61,.04);
  --shadow-lg: 0 8px 32px rgba(21,36,61,.10);
  /* Motion */
  --t-base: 180ms ease;
  --focus-ring: 0 0 0 3px rgba(21,36,61,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: text-decoration-color var(--t-base); }
a:hover { text-decoration-color: var(--clay); }

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); margin: 0 0 8px; }
p  { margin: 0 0 16px; text-wrap: pretty; }

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

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--clay); background: var(--clay-soft);
  padding: 6px 12px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.numglyph {
  display: inline-block; font-family: var(--font-mono); font-size: 13px;
  font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--clay); margin-bottom: 12px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,234,0.88);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 32px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .nav-cta { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-1);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em; line-height: 1; cursor: pointer;
  border: 1px solid transparent; transition: all var(--t-base);
  text-align: center; text-decoration: none;
}
.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-deep); border-color: var(--ink-deep); transform: translateY(-1px); color: var(--paper); }
.btn-outline { background: var(--paper-bright); color: var(--ink); border-color: var(--rule); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); padding: 14px 8px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--clay); }
.btn-ghost:hover { color: var(--clay); }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent);
}
.hero-inner { position: relative; }
.hero h1 { max-width: 880px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--ink-soft); font-weight: 500; font-style: italic; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 620px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-bullets { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--ink-soft); }
.hero-bullets li { display: flex; align-items: center; gap: 8px; }
.hero-bullets li::before { content: "✓"; color: var(--moss); font-weight: 700; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-deep); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 12px; }
.section-lead { color: var(--ink-soft); font-size: 17px; max-width: 60ch; margin: 0 auto; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Cards */
.card {
  background: var(--paper-bright); border: 1px solid var(--rule);
  border-radius: var(--r-1); padding: 28px; transition: border-color var(--t-base);
}
.card:hover { border-color: var(--ink); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-top .numglyph { margin-bottom: 0; }
.icon-tile {
  width: 40px; height: 40px; background: var(--paper-deep);
  border-radius: var(--r-1);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.55; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.package {
  background: var(--paper-bright); border: 1px solid var(--rule);
  border-radius: var(--r-1); padding: 32px 28px;
  display: flex; flex-direction: column; position: relative;
  transition: border-color var(--t-base);
}
.package:hover { border-color: var(--ink); }
.package-featured { border: 1px solid var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.package-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--clay); color: var(--paper);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: var(--r-pill);
}
.package-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.package-head h3 { font-size: 20px; margin: 0; }
.package-head .numglyph { margin-bottom: 0; }
.package-tag { color: var(--ink-soft); font-size: 13px; margin: 0 0 22px; }
.package-price {
  display: flex; align-items: baseline; gap: 6px; white-space: nowrap;
  padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--rule);
}
.package-price .price {
  font-family: var(--font-display); font-weight: 600; font-size: 44px;
  letter-spacing: -0.03em; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.package-price .period { color: var(--ink-soft); font-size: 14px; }
.package-list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.package-list li {
  padding: 6px 0 6px 26px; position: relative; font-size: 14px;
  color: var(--ink); line-height: 1.5;
}
.package-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--moss); border-bottom: 1.5px solid var(--moss);
  transform: rotate(-45deg);
}
.package-note { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 32px; }

/* Forms */
.form-row { margin-bottom: 16px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row-split { grid-template-columns: 1fr; } }
label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper-bright); border: 1px solid var(--rule); border-radius: var(--r-1);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus-ring); }
textarea { resize: vertical; min-height: 96px; }
.form-checkbox label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.form-checkbox input { width: auto; margin-top: 3px; flex-shrink: 0; }

.style-options { display: flex; gap: 10px; flex-wrap: wrap; }
.style-option { flex: 1; min-width: 140px; cursor: pointer; margin-bottom: 0; position: relative; }
.style-option input { position: absolute; opacity: 0; }
.style-option span {
  display: block; text-align: center; padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: var(--r-1);
  font-size: 14px; font-weight: 500; background: var(--paper-bright);
  transition: all var(--t-base);
}
.style-option input:checked + span { border-color: var(--ink); background: var(--paper-deep); color: var(--ink); }
.style-option:hover span { border-color: var(--ink); }

.form-hint { text-align: center; color: var(--ink-soft); font-size: 13px; margin: 12px 0 0; }
.form-feedback { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-1); font-size: 14px; display: none; }
.form-feedback.success { display: block; background: var(--moss-soft); color: var(--moss); border: 1px solid var(--moss); }
.form-feedback.error { display: block; background: var(--rust-soft); color: var(--rust); border: 1px solid var(--rust); }

/* Demo */
.demo-wrapper { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .demo-wrapper { grid-template-columns: 1fr; } }
.demo-form { background: var(--paper-bright); border: 1px solid var(--rule); border-radius: var(--r-1); padding: 24px; }
.demo-preview {
  background: var(--paper-bright); border: 1px solid var(--rule);
  border-radius: var(--r-2); overflow: hidden; min-height: 720px;
  box-shadow: var(--shadow-md); position: relative;
}
.preview-placeholder {
  height: 720px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: var(--ink-soft); padding: 32px;
}
.preview-placeholder-icon { font-size: 28px; margin-bottom: 14px; color: var(--clay); }
.preview-browser {
  background: var(--paper-deep); border-bottom: 1px solid var(--rule);
  padding: 10px 14px; display: flex; align-items: center; gap: 8px;
}
.preview-browser-dots { display: flex; gap: 6px; }
.preview-browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-faint); opacity: 0.4; }
.preview-browser-url {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-soft); background: var(--paper-bright);
  padding: 4px 12px; border-radius: 4px; margin: 0 12px; border: 1px solid var(--rule);
}

/* Generated preview internals — Werkstatt-aligned */
.gp {
  font-family: var(--gp-body, var(--font-body));
  color: var(--gp-text, #15243D);
  background: var(--gp-bg, #fff);
  font-size: 14px; line-height: 1.5;
}
.gp * { box-sizing: border-box; }
.gp a, .gp .gp-link { color: inherit; text-decoration: none; }

/* Nav */
.gp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--gp-rule, rgba(0,0,0,.08));
  background: var(--gp-bg, #fff);
}
.gp-logo {
  font-family: var(--gp-display); font-weight: 600; font-size: 16px;
  color: var(--gp-text); letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.gp-logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gp-accent); display: inline-block; }
.gp-nav-links { display: flex; gap: 18px; font-size: 12px; color: var(--gp-text-muted, #5a6a82); font-weight: 500; }
.gp-nav-cta {
  background: var(--gp-text); color: var(--gp-bg);
  padding: 7px 12px; border-radius: var(--gp-radius, 4px);
  font-size: 11px; font-weight: 600; letter-spacing: -0.005em;
}

/* Hero */
.gp-hero {
  padding: 44px 24px 36px;
  background: var(--gp-hero-bg, var(--gp-bg, #fff));
  position: relative; overflow: hidden;
}
.gp-eyebrow {
  display: inline-block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gp-accent); background: var(--gp-accent-soft);
  padding: 4px 9px; border-radius: 999px; margin-bottom: 14px;
}
.gp-hero h1 {
  font-family: var(--gp-display); font-size: 30px; margin: 0 0 10px;
  line-height: 1.1; color: var(--gp-text); font-weight: 600; letter-spacing: -0.02em;
  text-wrap: balance;
}
.gp-hero h1 em { font-style: italic; font-weight: 500; color: var(--gp-text-muted); }
.gp-hero p {
  color: var(--gp-text-muted, #5a6a82); font-size: 14px;
  margin: 0 0 18px; max-width: 460px; line-height: 1.55;
}
.gp-hero-cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gp-cta {
  display: inline-block; background: var(--gp-text); color: var(--gp-bg);
  padding: 10px 18px; border-radius: var(--gp-radius, 4px);
  font-size: 13px; font-weight: 600;
}
.gp-cta-ghost { color: var(--gp-text); font-size: 12px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--gp-accent); text-underline-offset: 3px; }
.gp-trust {
  margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 11px; color: var(--gp-text-muted); font-weight: 500;
}
.gp-trust span { display: inline-flex; align-items: center; gap: 4px; }
.gp-trust-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gp-accent); display: inline-block; }

/* Numglyph eyebrow inside sections */
.gp-numglyph {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--gp-accent); letter-spacing: 0.04em; display: block; margin-bottom: 6px;
}

/* Features */
.gp-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 28px 24px; background: var(--gp-bg, #fff);
}
@media (max-width: 600px) { .gp-features { grid-template-columns: 1fr; } }
.gp-feature {
  padding: 16px; border: 1px solid var(--gp-rule, rgba(0,0,0,.08));
  border-radius: var(--gp-radius, 4px); background: var(--gp-card-bg, #fff);
}
.gp-feature-num { font-family: var(--font-mono); font-size: 10px; color: var(--gp-accent); font-weight: 500; }
.gp-feature h3 { font-size: 14px; margin: 8px 0 5px; color: var(--gp-text); font-family: var(--gp-body); font-weight: 600; letter-spacing: -0.01em; }
.gp-feature p { font-size: 12px; color: var(--gp-text-muted); margin: 0; line-height: 1.5; }

/* Quote / about */
.gp-about {
  padding: 28px 24px; background: var(--gp-hero-bg, var(--gp-bg));
  border-top: 1px solid var(--gp-rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
}
@media (max-width: 600px) { .gp-about { grid-template-columns: 1fr; } }
.gp-about h2 {
  font-family: var(--gp-display); font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; margin: 8px 0 8px; color: var(--gp-text); line-height: 1.2;
}
.gp-about p { font-size: 13px; color: var(--gp-text-muted); margin: 0; line-height: 1.6; }
.gp-quote {
  font-family: var(--gp-display); font-style: italic; font-size: 16px;
  line-height: 1.4; color: var(--gp-text); padding-left: 14px;
  border-left: 2px solid var(--gp-accent); margin: 0;
}
.gp-quote-attr { display: block; font-style: normal; font-family: var(--gp-body); font-size: 11px; color: var(--gp-text-muted); margin-top: 8px; font-weight: 500; }

/* Footer */
.gp-footer {
  padding: 20px 24px; background: var(--gp-footer-bg);
  border-top: 1px solid var(--gp-rule);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 11px; color: var(--gp-footer-text, var(--gp-text-muted));
  font-family: var(--font-mono);
}
.gp-footer-links { display: flex; gap: 14px; }

.preview-result { transition: opacity 280ms ease; }
.preview-loading {
  position: absolute; inset: 0; background: rgba(245,241,234,0.92);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; z-index: 5;
}
.spinner { width: 28px; height: 28px; border: 2px solid var(--clay-soft); border-top-color: var(--clay); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview-loading p { color: var(--ink-soft); font-size: 13px; margin: 0; }

/* Contact */
.contact-form { background: var(--paper-bright); border: 1px solid var(--rule); border-radius: var(--r-1); padding: 32px; }
.contact-direct { text-align: center; margin-top: 28px; color: var(--ink-soft); font-size: 14px; }
.contact-direct p { margin: 4px 0; }
.contact-direct a { font-family: var(--font-mono); color: var(--ink); }

/* FAQ */
.faq details { border: 1px solid var(--rule); border-radius: var(--r-1); margin-bottom: 10px; background: var(--paper-bright); overflow: hidden; }
.faq summary { padding: 16px 22px; font-weight: 500; cursor: pointer; list-style: none; position: relative; padding-right: 48px; font-size: 15px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--ink-soft); font-weight: 400; transition: transform var(--t-base); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); font-size: 14px; }

/* Footer */
.site-footer { background: var(--ink); color: #cdd5e2; padding: 64px 0 32px; margin-top: 96px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }
.logo-footer { display: inline-block; margin-bottom: 8px; }
.footer-tag { color: var(--ink-faint); font-size: 14px; margin: 8px 0 0; }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #cdd5e2; font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid #2a3855; padding-top: 22px; margin: 24px 0 0; text-align: center; font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal h1 { margin-bottom: 32px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; color: var(--ink); }
.legal .legal-meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule); }
.legal a { color: var(--ink); }
