/* PhoneHome storefront — shared brand chrome (trial / buy / downloads / success). */
:root {
  --ink: #14201a;
  --muted: #4a5c52;
  --bg: #e8f2ec;
  --paper: #f0f7f3;
  --card: #ffffff;
  --line: #c5d9ce;
  --accent: #1f6b4a;
  --accent-ink: #f4fffb;
  --mint: #b8e0c8;
  --sky: #d4e8f0;
  --warn: #8b4a2e;
  --ok: #1f6b4a;
  --shadow: 0 4px 24px rgba(20, 32, 26, 0.07);
  --radius: 16px;
  --font: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --display: Fraunces, Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 0% -5%, var(--mint) 0%, transparent 55%),
    radial-gradient(800px 440px at 100% 0%, var(--sky) 0%, transparent 50%),
    linear-gradient(165deg, var(--paper) 0%, var(--bg) 55%, #e2efe8 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  font-weight: 600;
}

a:hover {
  text-decoration-thickness: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: color-mix(in srgb, var(--mint) 35%, #fff);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

/* —— Site shell —— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.35rem 1.35rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #131e16;
  box-shadow: 0 3px 12px rgba(31, 107, 74, 0.22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark .mothership-glyph {
  width: 28px;
  height: 28px;
  margin: 0;
  vertical-align: 0;
  background-color: #f3cb5c;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.05;
}

.brand-wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-wordmark span {
  color: var(--accent);
}

.brand-product {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.88rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.75rem 1.35rem 3rem;
}

.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.35rem 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.site-footer a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* —— Page content —— */
.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-title {
  font-family: var(--display);
  font-size: clamp(1.65rem, 4.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
}

.price {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.price-note {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--mint) 40%, #fff);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow);
}

.card h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
}

.card > p:first-of-type {
  margin-top: 0;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbf8;
}

input:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, #fff);
  outline-offset: 2px;
}

.btn,
button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 2px 8px rgba(31, 107, 74, 0.25);
}

.btn:hover,
button.primary:hover {
  filter: brightness(1.05);
}

.btn.ghost,
button.ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line);
  box-shadow: none;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
  filter: none;
}

.btn-block {
  width: 100%;
}

.fine {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.85rem 0 0;
}

.fine:first-child {
  margin-top: 0;
}

.status {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
  min-height: 1.3em;
}

.status.error {
  color: var(--warn);
  font-weight: 600;
}

.status.ok {
  color: var(--ok);
  font-weight: 600;
}

.stack {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 1.25rem 0 0;
}

.stack strong {
  color: var(--ink);
}

.steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.85rem 0.95rem 0.85rem 3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 70%, #fff);
  color: var(--muted);
  font-size: 0.95rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps li strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.15rem;
}

.license-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f4faf6;
}

.license-box pre {
  margin: 0.65rem 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  word-break: break-all;
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  max-height: 10rem;
  overflow: auto;
}

.success-hero {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.success-check {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

/* —— Prose (privacy / support) —— */
.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.prose-section {
  margin-top: 1.65rem;
}

.prose-section h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.prose-section p,
.prose-section li {
  color: var(--muted);
}

.prose-list,
.prose-section ul,
.prose-section ol {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose-list li,
.prose-section li {
  margin: 0.35rem 0;
}

.prose-list strong,
.prose-section strong {
  color: var(--ink);
}

.mothership-term {
  display: inline;
  white-space: nowrap;
}

.mothership-glyph {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.22em;
  margin-right: 0.2em;
  background-color: var(--accent);
  -webkit-mask-image: url("/ufo.svg");
  mask-image: url("/ufo.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

/* —— Compare / pitch —— */
.section-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.55rem;
  color: var(--ink);
}

.section-lede {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.compare-table th {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  background: color-mix(in srgb, var(--mint) 28%, #fff);
}

.compare-table th.highlight,
.compare-table td.highlight {
  background: color-mix(in srgb, var(--mint) 45%, #fff);
  color: var(--ink);
  font-weight: 600;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.pitch-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.pitch-list li {
  margin: 0.45rem 0;
}

.pitch-list strong {
  color: var(--ink);
}

.cost-callout {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--mint) 22%, #fff);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cost-callout strong {
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
}

.faq {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 1rem;
}

.faq summary {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.answer-block {
  margin: 0 0 1.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 80%, #fff);
  color: var(--muted);
  font-size: 0.98rem;
}

.answer-block strong {
  color: var(--ink);
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
