/* Terraform Cards — marketing site.
   Warm and calm, echoing the card sheets the product makes, but restrained
   enough that the sample video is the brightest thing on the page. */

:root {
  --ink: #1A1D22;
  --ink-2: #4E555F;
  --ink-3: #838B96;
  --line: #E6E2DC;
  --bg: #FFFDFB;
  --bg-alt: #FBF6F0;
  --accent: #E2445C;
  --accent-ink: #B72B44;
  --accent-soft: #FFF0F1;
  --ok: #1F9D62;
  --shadow: 0 1px 2px rgba(26,20,16,.04), 0 10px 34px rgba(26,20,16,.08);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  font: 17px/1.6 ui-rounded, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
a { color: inherit; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.6rem;
  background: rgba(255,253,251,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1.06rem; text-decoration: none; letter-spacing: -.02em;
}
.brand b { font-weight: 800; }
.brand .mark { font-size: 1.25rem; }
.nav nav { display: flex; align-items: center; gap: 1.4rem; }
.nav nav a { text-decoration: none; font-size: .95rem; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 700px) { .nav nav a:not(.btn) { display: none; } }

/* ----------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 4.5rem 1.6rem 3.5rem;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; } }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; margin-bottom: 1.1rem; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.8rem; }
.lede b { color: var(--ink); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: .8rem; }
.micro { font-size: .84rem; color: var(--ink-3); }

.hero-media { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.phone {
  width: 100%; max-width: 380px; border-radius: 26px; overflow: hidden;
  background: #000; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.phone video { display: block; width: 100%; height: auto; }
.caption { font-size: .84rem; color: var(--ink-3); }

/* -------------------------------------------------------------- section */
.section { max-width: 1120px; margin: 0 auto; padding: 4.5rem 1.6rem; }
.section.alt { max-width: none; background: var(--bg-alt); }
.section.alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: .5rem; }
.section .sub { color: var(--ink-2); margin-bottom: 2rem; max-width: 46rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.steps article { position: relative; padding-top: .4rem; }
.steps .num {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 1rem;
  margin-bottom: .8rem;
}
.steps h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.steps p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2rem; }
.cards article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.cards h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.cards p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery figure {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: #fff;
}
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption {
  padding: .6rem .8rem; font-size: .84rem; color: var(--ink-2); font-weight: 600;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------- pricing */
.seg {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px; margin-bottom: 1.8rem; background: #fff;
}
.seg button {
  border: none; background: none; font: inherit; font-weight: 600; cursor: pointer;
  padding: .4rem 1.1rem; border-radius: 999px; color: var(--ink-2); font-size: .95rem;
}
.seg button.on { background: var(--ink); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem;
  box-shadow: var(--shadow); position: relative;
}
.plan.pop { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226,68,92,.12), var(--shadow); }
.plan .tagpop {
  position: absolute; top: -.7rem; right: 1.2rem; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px;
}
.plan h3 { font-size: 1.15rem; }
.plan .blurb { font-size: .9rem; color: var(--ink-3); min-height: 3.1rem; }
.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: .85rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.price .was { font-size: .8rem; color: var(--ink-3); font-weight: 500; display: block; }
.plan ul { list-style: none; display: grid; gap: .35rem; font-size: .92rem; color: var(--ink-2); }
.plan li { display: flex; gap: .5rem; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; flex: 0 0 auto; }
.plan .btn { margin-top: auto; text-align: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

.packs-head { font-size: 1.25rem; margin: 3rem 0 .3rem; }
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 620px; }
.pack {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: var(--shadow);
}
@media (max-width: 640px) { .packs { grid-template-columns: 1fr; } }

.testnote {
  margin-top: 2rem; padding: .9rem 1.1rem; border-radius: 12px;
  background: #EAF4FF; color: #17457A; font-size: .92rem; max-width: 46rem;
}
.testnote code { background: rgba(23,69,122,.1); padding: .05rem .35rem; border-radius: 5px; }
.loading { color: var(--ink-3); }
.err { color: var(--accent-ink); }

/* ------------------------------------------------------------------ faq */
.faq { display: grid; gap: .6rem; max-width: 46rem; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: .9rem 1.1rem;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " +"; color: var(--ink-3); float: right; }
.faq details[open] summary::after { content: " –"; }
.faq p { color: var(--ink-2); font-size: .95rem; margin-top: .6rem; }

/* ---------------------------------------------------------------- button */
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  padding: .7rem 1.3rem; border-radius: 11px; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; font-size: .98rem;
}
.btn.sm { padding: .42rem .9rem; font-size: .9rem; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 1.6rem 3rem; background: var(--bg-alt); }
.foot-grid {
  max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem;
}
.foot-grid div { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.foot-grid a { font-size: .93rem; color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.copyright { max-width: 1120px; margin: 2rem auto 0; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }

/* A single paragraph carrying what the four-card feature grid used to say. */
.aside {
  margin-top: 2.4rem; padding: 1.1rem 1.3rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-2); font-size: .97rem; max-width: 52rem;
}
