/* Call Carry — Ploy landing + Amie app. White, Inter, black CTAs. */
:root {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #171717;
  --muted: #737373;
  --muted-2: #a3a3a3;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --accent: #0a0a0a;
  --accent-hover: #262626;
  --ok: #166534;
  --ok-bg: #f0fdf4;
  --ok-line: #bbf7d0;
  --warn: #a16207;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --danger: #b91c1c;
  --radius: 12px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --max-wide: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: 0.7; }

.wrap { max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }

/* ========== Nav ========== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
}
.logo {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { opacity: 1; }
.logo em { font-style: normal; font-weight: 650; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-cta a { color: var(--muted); }
.nav-cta a:hover { color: var(--ink); opacity: 1; }
.nav-cta a.nav-primary {
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}
.nav-cta a.nav-primary:hover { background: var(--accent-hover); opacity: 1; }

/* ========== Landing hero (Ploy) ========== */
.hero-center {
  text-align: center;
  padding: 72px 0 48px;
  max-width: 640px;
  margin: 0 auto;
}
.hero-center h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--ink);
  max-width: none;
}
.hero-center .sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 12px;
  line-height: 1.55;
}
.who-for {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 28px;
  line-height: 1.45;
}
.hero-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: left;
}
.hero-card textarea,
.hero-paste {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.5;
  display: block;
  cursor: pointer;
}
.hero-card textarea:focus,
.hero-paste:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.hero-card textarea::placeholder { color: var(--muted-2); }
.hero-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hero-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 14px 0 0;
  text-align: center;
}
.hero-card-meta strong { color: var(--ink-2); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}
.btn:hover { text-decoration: none; opacity: 1; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* How it works */
.how {
  padding: 56px 0 32px;
  max-width: 560px;
  margin: 0 auto;
}
.how h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
  text-align: center;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.steps li:last-child { border-bottom: 0; }
.steps .n {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 0.85rem;
}
.steps strong { display: block; margin-bottom: 2px; font-size: 0.95rem; }
.steps span { color: var(--muted); font-size: 0.9rem; }

/* Why not ChatGPT */
.vs {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 40px 0 8px;
  text-align: center;
}
.vs h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}
.vs-lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}
.vs-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.vs-list li {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.4;
}
.vs-list li:last-child { border-bottom: 0; }
.vs-list li::before {
  content: "× ";
  color: var(--muted);
  font-weight: 600;
}
.vs-close {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
  font-weight: 500;
}


/* Sample output */
.sample {
  max-width: 560px;
  margin: 24px auto 8px;
  padding: 24px 0 8px;
}
.sample-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  text-align: center;
}
.sample h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 700;
  text-align: center;
}
.sample-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  text-align: left;
}
.sample-block { margin-bottom: 18px; }
.sample-block:last-child { margin-bottom: 0; }
.sample-block h3 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}
.sample-subject {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.sample-email {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}
.sample-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sample-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.sample-list li { margin: 6px 0; }
.sample-list-ul { list-style: disc; }
.sample-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* FAQ */
.faq {
  max-width: 560px;
  margin: 8px auto 48px;
  padding: 16px 0 0;
}
.faq h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
  text-align: center;
}
.faq-list {
  margin: 0;
  padding: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 0; }
.faq-item dt {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 4px;
  color: var(--ink);
}
.faq-item dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.faq-item dd a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 600px) {
  .sample-cols { grid-template-columns: 1fr; }
}

/* Pricing */
.offer-box {
  max-width: 420px;
  margin: 40px auto 40px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
}
.offer-box .kicker {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.offer-box h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.offer-box .big {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 12px 0 4px;
  color: var(--ink);
}
.offer-box .big small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.offer-box ul {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  text-align: left;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.offer-box li {
  margin: 0;
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.offer-box li:last-child { border-bottom: 0; }
.offer-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
}
.offer-box .fine {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.offer-box .fine a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.footer a { color: var(--muted); }

/* ========== App (Amie) ========== */
.app-shell {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px 48px;
  min-height: 100vh;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 12px;
  flex-wrap: wrap;
}
.app-header-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.app-header .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}
.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-elev);
}
.badge.demo {
  border-color: var(--warn-line);
  color: var(--warn);
  background: var(--warn-bg);
}
.badge.live {
  border-color: var(--ok-line);
  color: var(--ok);
  background: var(--ok-bg);
}
.cap-bar {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--muted-2);
  text-align: center;
}

/* Amie intro */
.amie-intro {
  max-width: 520px;
  margin: 40px auto 0;
  text-align: center;
}
.amie-intro h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  max-width: none;
}
.amie-intro .amie-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
  line-height: 1.5;
}
.amie-benefits {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  margin-bottom: 0;
  overflow: hidden;
}
.amie-benefits .row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.amie-benefits .row:last-child { border-bottom: 0; }
.amie-benefits .ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.amie-benefits strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.amie-benefits span { color: var(--muted); font-size: 0.85rem; }

/* Empty: centered paste card, hide output */
.app-shell:not(.has-result) .layout {
  display: block;
  max-width: 520px;
  margin: 16px auto 0;
}
.app-shell:not(.has-result) #outPanel { display: none; }
.app-shell:not(.has-result) .panel-in { box-shadow: var(--shadow); }
.app-shell:not(.has-result) .panel-label { display: none; }
.app-shell:not(.has-result) .panel-in .actions { flex-direction: column; }
.app-shell:not(.has-result) .panel-in .actions .btn {
  width: 100%;
  padding: 14px 22px;
}
.app-shell:not(.has-result) .hint,
.app-shell:not(.has-result) .err { text-align: center; }

/* After generate: two-pane */
.app-shell.has-result .amie-intro { display: none; }
.app-shell.has-result .layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  max-width: none;
}
.app-shell.has-result #outPanel { display: flex; }
.app-shell.has-result .cap-bar { text-align: left; }
.app-shell.has-result .err { text-align: left; }

@media (max-width: 860px) {
  .app-shell.has-result .layout { grid-template-columns: 1fr; }
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  box-shadow: var(--shadow);
}
.panel h2,
.panel-label {
  margin: 0 0 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}
.panel textarea,
textarea#transcript {
  flex: 1;
  width: 100%;
  min-height: 220px;
  resize: vertical;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.5;
}
.app-shell.has-result .panel textarea,
.app-shell.has-result textarea#transcript {
  min-height: 320px;
}
.panel textarea:focus,
textarea#transcript:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 10px;
}

.out-block { margin-bottom: 18px; }
.out-block h3 {
  margin: 0 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}
.out-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
}
.out-box.email { font-family: var(--font); font-size: 0.9rem; }
.list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: 0.92rem;
}
.list li { margin: 6px 0; }
.empty {
  color: var(--muted);
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.paywall {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.9rem;
}
.paywall strong { color: var(--ink); }
.err {
  margin-top: 10px;
  color: var(--danger);
  font-size: 0.9rem;
}
.spinner { opacity: 0.7; }

@media (max-width: 600px) {
  .hero-center { padding: 48px 0 32px; }
  .amie-intro { margin-top: 28px; }
  .wrap, .app-shell { padding-left: 16px; padding-right: 16px; }
}
