/* ============================================================
   Zircon Apps — corporate site
   Type: Hanken Grotesk + Geist Mono + Anton, self-hosted
   (all SIL OFL — see fonts/FONTS-NOTICE.txt)
   ============================================================ */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-800-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anton";
  src: url("../fonts/Anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --surface: #101010;
  --line: rgba(255, 255, 255, 0.14);
  --text: #e6e6e6;
  --muted: #8f8f8f;
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.05);
  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, monospace;
  --container: 1440px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 80px;
}

/* ---------- Type ---------- */

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.8vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.accent { color: var(--text); }

/* colored square before section titles; quick 360° flip every ~5s */
.title-sq {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.38em;
  vertical-align: 0.05em;
  background: var(--sq, var(--text));
  animation: sq-spin 2.8s ease-in-out infinite;
}

@keyframes sq-spin {
  0%, 75% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* App Store icon in place of a title square — same size, same spin */
.title-icon {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 0.22em;
  vertical-align: -0.06em;
  animation: sq-spin 2.8s ease-in-out infinite;
}

.title-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--text);
  color: #000;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--text);
}

.btn-lg {
  font-size: 16px;
  padding: 13px 32px;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-gem {
  width: 26px;
  height: 26px;
  color: var(--text);
  flex-shrink: 0;
}


.logo-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}
.logo-text em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--text); }

/* "Get in touch": animated pink shimmer rim (video-border look, pure CSS) */
.site-nav .nav-cta {
  position: relative;
  color: var(--text);
  background: #000;
  border-radius: 999px;
  padding: 10px 21px;
}

.site-nav .nav-cta::before,
.site-nav .nav-cta::after {
  content: "";
  position: absolute;
  inset: -2.5px;
  border-radius: 999px;
  z-index: -1;
  background: conic-gradient(
    from var(--rim-angle),
    #ff4fd8,
    #ffffff,
    #ff9de2,
    #b46ee8,
    #ff4fd8,
    #ffd9f5,
    #ff4fd8
  );
  animation: rim-spin 3.2s linear infinite;
}

.site-nav .nav-cta::after {
  filter: blur(6px);
  opacity: 0.4;
}

/* hover: cropped copies of the label stack tightly above and below,
   clipped by the pill (button stays black, the rim stays) */
.nav-cta-clip {
  display: block;
  margin: -10px -21px;
  padding: 10px 21px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.nav-cta-label {
  position: relative;
  display: inline-block;
  line-height: 1;
  /* black plate under the center label — masks the stacked copies */
  background: #000;
  padding: 3px 8px;
  margin: -3px -8px;
}

.nav-cta-label::before,
.nav-cta-label::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  z-index: -1; /* behind the center plate, above the button */
  transition: opacity 0.18s ease, transform 0.22s ease;
  pointer-events: none;
}

.nav-cta-label::before {
  top: 0;
  transform: translateY(-30%);
}

.nav-cta-label::after {
  bottom: 0;
  transform: translateY(30%);
}

.site-nav .nav-cta:hover .nav-cta-label::before {
  opacity: 1;
  transform: translateY(-62%);
}

.site-nav .nav-cta:hover .nav-cta-label::after {
  opacity: 1;
  transform: translateY(62%);
}

@property --rim-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rim-spin {
  to { --rim-angle: 360deg; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 200px 0 130px;
  overflow: hidden;
}

.hero-pixels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

/* App Store icons bursting out of the badge (easter egg) */
.as-flyer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  pointer-events: none;
  will-change: transform, opacity;
}

.as-flyer svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* "iOS app studio" badge: white frame, black text */
.hero-badge {
  display: inline-block;
  background: #fff;
  color: #000;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  margin-bottom: 36px;
}

/* staggered hero entrance (also replayed on logo click) */
.hero-badge.reveal { transition-delay: 0s; }
.hero-title.reveal { transition-delay: 0.1s; }
.hero .hero-lead.reveal { transition-delay: 0.2s; }

/* centered headline with a rotating framed word (color cycles per word) */
.hero .container { text-align: center; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 7.4vw, 96px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.ht-line {
  display: block;
  white-space: nowrap;
}

.swap {
  --sc: #6e56cf;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding: 0.08em 0.14em;
  margin-right: 0.14em;
  border-radius: 0;
  background: var(--sc);
  transition: background-color 0.5s ease;
}

.swap-word {
  display: block;
  color: #fff;
  line-height: 1;
  text-transform: capitalize;
  /* pull the frame tight to the glyphs: trim the font's built-in
     head/foot space so the box hugs cap height and descenders */
  margin: -0.06em 0 -0.12em;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.swap-word.is-out {
  opacity: 0;
  transform: translateY(0.12em) scale(0.96);
}

.swap-tag {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-100%);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 0;
  background: var(--sc);
  color: #fff;
  white-space: nowrap;
  transition: background-color 0.5s ease, opacity 0.24s ease;
}

.swap-tag.is-out { opacity: 0; }

.hero-lead {
  margin: 36px auto 0;
  max-width: 620px;
  font-size: 18px;
  color: var(--muted);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.mq-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  flex-shrink: 0;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  color: var(--muted);
  font-size: 10px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Manifesto: scroll-lit statement with inline widgets ----------
   Light section on the dark site: bg #f7f5f3, inverted text colors. */

.manifesto { background: #f7f5f3; }

.manifesto .section-title {
  color: #131312;
  margin-bottom: 56px;
}

.manifesto-inner {
  max-width: 980px;
  margin: 0 auto;
}

.manifesto-text {
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #131312;
}

.manifesto-text + .manifesto-text { margin-top: 1.3em; }

/* dim/lit states only apply once JS has split the text (.manifesto-ready) */
.manifesto-ready .mw:not(.m-deco) {
  color: rgba(19, 19, 18, 0.16);
  transition: color 0.35s ease;
}
.manifesto-ready .mw:not(.m-deco).is-lit { color: #131312; }

.manifesto-ready .m-deco {
  opacity: 0.14;
  transition: opacity 0.35s ease;
}
.manifesto-ready .m-deco.is-lit { opacity: 1; }

/* inline widgets */
.m-mark {
  background: #d8e21f;
  color: #131400;
  font-style: italic;
  font-weight: 800;
  padding: 0 0.2em;
}

.m-braces {
  background: #8b78e6;
  color: #171128;
  font-weight: 800;
  padding: 0 0.18em;
}

.m-stamp {
  display: inline-block;
  background: #ff6a2b;
  color: #1c0a02;
  font-family: "Anton", var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.04em 0.32em 0.1em;
  transform: rotate(-5deg);
}

.m-pill {
  display: inline-block;
  background: #2b50e0;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.6em;
  letter-spacing: 0.06em;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  vertical-align: 0.18em;
}

.m-select {
  display: inline-block;
  position: relative;
  border: 2px dashed rgba(0, 0, 0, 0.45);
  padding: 0 0.22em;
}

.m-select::after {
  content: attr(data-size);
  position: absolute;
  top: -1em;
  right: -1.4em;
  background: #2b50e0;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  padding: 2px 6px;
  white-space: nowrap;
}

.m-lang {
  display: inline-block;
  position: relative;
  background: #131312;
  color: #fff;
  font-weight: 800;
  padding: 0 0.28em;
}

.m-lang::before {
  content: "Language: Swift";
  position: absolute;
  top: -1.55em;
  left: 0;
  background: #131312;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 3px 7px;
  white-space: nowrap;
}

.m-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.58em;
  font-weight: 500;
  background: #221c33;
  color: #b3a1ff;
  padding: 0.4em 0.7em;
  border-radius: 8px;
  vertical-align: 0.22em;
}

.m-chip {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  font-size: 0.55em;
  padding: 0.3em 0.7em;
  vertical-align: 0.28em;
}

/* ---------- Sections ---------- */

.section { padding: 120px 0; }

.section-dark {
  background: var(--bg-elevated);
}

/* About: yellow block, inverted text */
#about { background: #ffdd33; }
#about .section-title { color: #131200; }
#about .split-right p { color: rgba(19, 18, 0, 0.78); }

/* Numbers: light blue block, inverted text */
#numbers { background: #9bd1ee; }
#numbers .section-title { color: #0c1620; }
#numbers .stat-big { color: #0c1620; }
#numbers .stat-row { border-color: rgba(12, 22, 32, 0.22); }
#numbers .stat-desc p { color: rgba(12, 22, 32, 0.78); }
#numbers .stat-desc strong { color: #0c1620; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split-right p { color: var(--muted); }
.split-right p + p { margin-top: 20px; }

/* ---------- Stats: full-width rows, huge number left, text right ---------- */

.stat-rows {
  margin-top: 64px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  column-gap: 56px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.stat-row:last-child { border-bottom: 1px solid var(--line); }

.stat-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 10vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-plus {
  font-style: normal;
  color: var(--sp, var(--text));
  margin-left: 0.05em;
}

.stat-desc p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.stat-desc strong {
  color: var(--text);
  font-weight: 700;
}

/* ---------- Services: Q&A accordion ---------- */

.faq {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 34px 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--muted);
  transition: color 0.25s ease;
}

.faq-q:hover,
.faq-item.is-open .faq-q {
  color: var(--text);
}

/* plus that turns into minus */
.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: #eab308;
  transition: transform 0.3s ease;
}

.faq-icon::after { transform: rotate(90deg); }

.faq-item.is-open .faq-icon::before { transform: rotate(180deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(180deg); }

/* smooth expand/collapse */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-a-inner { overflow: hidden; }

.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a p {
  color: var(--muted);
  max-width: 72ch;
  padding: 0 8px 36px;
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- Reviews: yellow block, four sharp-cornered cards ---------- */

.reviews-section { background: #ffdd33; }

.reviews-section .section-title { color: #131200; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.review-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 28px 26px;
}

.review-stars {
  color: #131200;
  font-size: 18px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.review-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #131200;
  margin-bottom: 12px;
}

.review-card blockquote {
  color: rgba(19, 18, 0, 0.72);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-who {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.review-who strong {
  color: #131200;
  font-weight: 700;
  font-size: 15px;
}

.review-who span {
  color: rgba(19, 18, 0, 0.55);
  font-size: 14px;
}

/* easter egg: a review-style tag that follows the cursor over the section */
.cursor-tag {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  pointer-events: none;
  background: #fff;
  color: #131200;
  border: 1.5px solid #131200;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cursor-tag.is-on { opacity: 1; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  text-align: center;
  padding: 160px 0;
  overflow: hidden;
}

.cta .container { position: relative; z-index: 1; }

/* phone mockups peeking in from the section edges.
   The wrapper slides in from beyond the viewport on first scroll (reveal),
   the inner image tilts and floats. */
.cta-phone {
  position: absolute;
  top: 50%;
  z-index: 0;
  pointer-events: none;
}

.cta-phone img {
  height: 560px;
  width: auto;
  max-width: none;
}

.cta-phone.reveal {
  opacity: 1;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-phone-left.reveal {
  left: 0;
  transform: translate(-130%, -50%);
}
.cta-phone-left.reveal.is-visible {
  transform: translate(-42%, -50%);
}

.cta-phone-right.reveal {
  right: 0;
  transform: translate(130%, -50%);
}
.cta-phone-right.reveal.is-visible {
  transform: translate(42%, -50%);
}

.cta-phone-left img {
  transform: rotate(11deg);
  animation: phone-float-left 6s ease-in-out infinite;
}

.cta-phone-right img {
  transform: rotate(-11deg);
  animation: phone-float-right 6s ease-in-out infinite;
}

/* gentle hover in the air: left starts drifting down, right starts up */
@keyframes phone-float-left {
  0%, 100% { transform: translateY(0) rotate(11deg); }
  50% { transform: translateY(20px) rotate(11deg); }
}

@keyframes phone-float-right {
  0%, 100% { transform: translateY(0) rotate(-11deg); }
  50% { transform: translateY(-20px) rotate(-11deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-phone img { animation: none; }
  .cta-phone-left.reveal,
  .cta-phone-left.reveal.is-visible { transform: translate(-42%, -50%); transition: none; }
  .cta-phone-right.reveal,
  .cta-phone-right.reveal.is-visible { transform: translate(42%, -50%); transition: none; }
}

@media (max-width: 900px) {
  .cta-phone { display: none; }
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.cta-lead {
  margin: 28px auto 44px;
  max-width: 460px;
  color: var(--muted);
}

/* contact form */
.cta-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.cta-form-row {
  display: flex;
  gap: 28px;
}

.cta-form-row .cta-field { flex: 1; min-width: 0; }

.cta-field {
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* our own validation messages instead of the browser bubbles */
.cta-err {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #ff6a2b;
  margin-top: 7px;
}

.cta-input.is-invalid { border-bottom-color: #ff6a2b; }

.cta-form-status {
  margin: 2px 0 0;
  color: #ff8b55;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.cta-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* neutralize the browser autofill tint */
.cta-input:-webkit-autofill,
.cta-input:-webkit-autofill:hover,
.cta-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  -webkit-text-fill-color: var(--text);
  transition: background-color 99999s ease-in-out 0s;
}

@media (max-width: 600px) {
  .cta-form-row { flex-direction: column; gap: 14px; }
}

.cta-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 4px;
  transition: border-color 0.2s ease;
}

.cta-input::placeholder { color: var(--muted); }

.cta-input:focus {
  outline: none;
  border-bottom-color: #fff;
}

.cta-textarea {
  resize: vertical;
  min-height: 130px;
}

.cta-form .btn {
  margin-top: 10px;
  align-self: center;
  cursor: pointer;
  border: none;
}

/* success state: the whole CTA content fades out, only the thanks remains */
.cta-form[hidden],
.cta-thanks[hidden] { display: none; }

.cta.is-sending .reveal:not(.cta-phone) {
  opacity: 0;
  transform: translateY(-14px);
}

.cta.is-sent .cta-title,
.cta.is-sent .cta-lead { display: none; }

/* center the thanks vertically in the height-locked section */
.cta.is-sent {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta.is-sent .container { width: 100%; }

.cta-thanks {
  max-width: 720px;
  margin: 0 auto;
  animation: thanks-in 0.5s ease both;
}

@keyframes thanks-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.cta-thanks-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.thanks-heart {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.08em;
  margin-left: 0.06em;
}

.cta-thanks-text {
  margin-top: 12px;
  color: var(--muted);
}

.cta-thanks-again {
  margin-top: 28px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.cta-thanks-again:hover { border-color: var(--text); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

/* each column separated by a thin line on its left, like Ditto */
.footer-col {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.footer-col h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col li {
  color: var(--text);
  font-size: 16px;
}

.footer-col li strong { color: var(--text); font-weight: 700; }

.footer-col li a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-col li a:hover { color: #fff; }

/* same grid as .footer-grid so the Privacy link lines up with the
   Contact column's text (column start + the 28px hairline padding) */
.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.footer-bottom a {
  justify-self: start;
  padding-left: 28px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Legal page (privacy.html) ---------- */

.legal { padding: 96px 0 60px; }

.legal .section-title { margin-bottom: 48px; }

.legal-body { max-width: 780px; }

.legal-tldr {
  border: 1px solid var(--line);
  padding: 24px 28px;
}

.legal-tldr-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.legal-tldr p { color: var(--text); }

.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}

.legal-body p { color: var(--muted); }
.legal-body p + p { margin-top: 14px; }

.legal-body ul {
  color: var(--muted);
  margin-top: 14px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-body ul + p { margin-top: 14px; }

.legal-body strong { color: var(--text); font-weight: 700; }

.legal-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover { color: #fff; }

/* ambient pixel mosaic at the very bottom */
.footer-mosaic {
  margin-top: 64px;
  line-height: 0;
}

.footer-mosaic canvas {
  display: block;
  width: 100%;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .title-sq { animation: none; }
  .title-icon { animation: none; }
  .site-nav .nav-cta::before,
  .site-nav .nav-cta::after { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  /* narrow screens: the first headline line spans almost the full width,
     so the swap tag would land on it — reserve the tag its own row */
  .ht-line-swap { margin-top: 32px; }

  .split { grid-template-columns: 1fr; gap: 32px; }
  .stat-row { grid-template-columns: 1fr; row-gap: 24px; padding: 48px 0; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 14px; }
  .footer-bottom a { padding-left: 0; }
  .section { padding: 88px 0; }
  .hero { padding: 160px 0 96px; }
}

@media (max-width: 760px) {
  .container { padding: 0 24px; }

  /* denser wrapping on small screens — give the inline widget tags air */
  .manifesto-text { line-height: 1.7; }
  .m-select, .m-lang { margin-top: 0.85em; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(10, 12, 16, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .site-nav.is-open { transform: none; }

  .site-nav a {
    font-size: 17px;
    padding: 10px 0;
  }

  .site-nav .nav-cta {
    margin-top: 12px;
    padding: 12px 24px;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .faq-q { padding: 26px 4px; }
  .faq-a p { padding: 0 4px 28px; }

  .reviews-grid { grid-template-columns: 1fr; }
}
