/* Mintcast — site stylesheet
   Light editorial layout. No frameworks, no build step. */

:root {
  --paper: #FAF9F6;
  --paper-2: #F3F1EA;
  --paper-3: #EDEAE0;
  --ink: #14161A;
  --ink-2: #3B4046;
  --muted: #6C7168;
  --rule: #E2DED3;
  --rule-2: #CFCABC;
  --green: #0E5B43;
  --green-2: #14775A;
  --mint: #D9F0DC;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --maxw: 1160px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--mint); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}

.mono { font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.02em; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.brand svg { width: 24px; height: 24px; color: var(--green); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.nav a { text-decoration: none; transition: color 0.15s ease; }
.nav a:hover { color: var(--ink); }

.header-cta { font-size: 14.5px; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}
.btn.ghost:hover { border-color: var(--ink); background: transparent; }

.btn.sm { height: 38px; padding: 0 15px; font-size: 13.5px; }
.btn.block { width: 100%; }

/* ---------------- sections ---------------- */

.section { padding: clamp(64px, 8.5vw, 118px) 0; border-top: 1px solid var(--rule); }
.section.tight { padding: clamp(48px, 6vw, 76px) 0; }
.section:first-of-type { border-top: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--rule-2);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.08; }

h1 { font-size: clamp(38px, 5.6vw, 68px); letter-spacing: -0.04em; }
h2 { font-size: clamp(27px, 3.6vw, 42px); }
h3 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.3; }

h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.lede { font-size: clamp(16.5px, 1.5vw, 18.5px); color: var(--ink-2); max-width: 48ch; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; line-height: 1.55; }

.section-head { max-width: 60ch; margin-bottom: 52px; }
.section-head p { margin: 16px 0 0; color: var(--ink-2); font-size: 16.5px; }

/* ---------------- hero ---------------- */

.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }
.hero .lede { margin: 0 0 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

/* ---------------- preview device ---------------- */

.preview { display: flex; flex-direction: column; align-items: center; }

.device {
  width: min(290px, 74vw);
  aspect-ratio: 9 / 16;
  padding: 7px;
  border-radius: 26px;
  background: #17191C;
  box-shadow: 0 1px 1px rgba(20, 22, 26, 0.12), 0 24px 48px -22px rgba(20, 22, 26, 0.45);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #22262A;
  isolation: isolate;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.screen[data-scene="studio"] .bg-studio,
.screen[data-scene="sunset"] .bg-sunset,
.screen[data-scene="room"] .bg-room,
.screen[data-scene="alley"] .bg-alley { opacity: 1; }

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 48%, rgba(0,0,0,0.42) 100%);
  z-index: 3;
}

.screen-top,
.screen-bottom {
  position: absolute;
  left: 0; right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}
.screen-top { top: 0; }
.screen-bottom { bottom: 0; justify-content: flex-start; }

.rec { display: inline-flex; align-items: center; gap: 5px; }
.rec i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #E8503F;
  box-shadow: 0 0 0 3px rgba(232, 80, 63, 0.22);
}
.chip-sm {
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(290px, 74vw);
  margin-top: 16px;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 7px 4px 6px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.swatch:hover { border-color: var(--rule-2); color: var(--ink-2); }
.swatch.is-active { border-color: var(--ink); color: var(--ink); background: var(--paper); }

.sw {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  display: block;
  background-position: center 22% !important;
}
.sw-studio { background: url("img/scene-studio.png") center 22% / cover no-repeat; }
.sw-sunset { background: url("img/scene-sunset.png") center 22% / cover no-repeat; }
.sw-room { background: url("img/scene-room.png") center 22% / cover no-repeat; }
.sw-alley { background: url("img/scene-alley.png") center 22% / cover no-repeat; }

.fineprint {
  width: min(290px, 74vw);
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* ---------------- numbered feature grid ---------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.cell {
  padding: 26px 30px 26px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cell:nth-child(3n + 2), .cell:nth-child(3n + 3) { padding-left: 30px; }
.cell:nth-child(3n + 2) { border-left: 1px solid var(--rule); }
.cell:nth-child(3n + 3) { border-left: 1px solid var(--rule); }

.cell .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.cell p { margin: 8px 0 0; font-size: 14.8px; line-height: 1.58; color: var(--ink-2); }

/* ---------------- platform chips ---------------- */

.platform-panel {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-2);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 11px;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: var(--paper);
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ---------------- steps ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 8px;
}
.step {
  padding: 28px 30px 0 0;
  border-top: 1px solid var(--ink);
}
.step + .step { padding-left: 30px; border-left: 1px solid var(--rule); }
.step .big {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--green);
  margin-bottom: 16px;
}
.step p { margin: 8px 0 0; font-size: 14.8px; color: var(--ink-2); }

/* ---------------- spec table ---------------- */

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.spec-table th {
  width: 32%;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-right: 24px;
}
.spec-table td { color: var(--ink-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ---------------- pricing ---------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}

.plan {
  padding: 30px 24px 32px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule);
}
.plan:first-child { border-left: 0; padding-left: 0; }
.plan:last-child { padding-right: 0; }

.plan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.plan-flag {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 6px;
}
.price .amt { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.price .cur { font-size: 17px; font-weight: 500; align-self: flex-start; margin-top: 4px; }
.price .per { font-size: 13px; color: var(--muted); }

.plan-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  min-height: 38px;
  margin-bottom: 20px;
}

.plan ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  flex: 1;
}
.plan ul li {
  padding: 7px 0 7px 17px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.plan ul li:last-child { border-bottom: 0; }
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 7px; height: 1px;
  background: var(--green-2);
}

.checkout-note {
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-2);
  font-size: 13.2px;
  line-height: 1.6;
  color: var(--ink-2);
}
.checkout-note strong { font-weight: 600; color: var(--ink); }

/* ---------------- faq ---------------- */

.faq { border-top: 1px solid var(--rule); }

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 17px;
  color: var(--muted);
  line-height: 1.3;
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0;
  padding: 0 40px 24px 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 74ch;
}
.faq details p + p { padding-top: 0; }

/* ---------------- contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.dl { margin: 0; border-top: 1px solid var(--rule); }
.dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.8px;
}
.dl dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.dl dd { margin: 0; color: var(--ink-2); }
.dl a { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(14, 91, 67, 0.28); }
.dl a:hover { border-bottom-color: var(--green); }

/* ---------------- footer ---------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 40px;
  background: var(--paper-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 44px;
}

.footer-brand p { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); max-width: 30ch; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* ---------------- legal pages ---------------- */

.legal-top { padding: clamp(48px, 6vw, 76px) 0 32px; }
.legal-top h1 { font-size: clamp(32px, 4.4vw, 50px); }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.legal-body { padding: 8px 0 clamp(64px, 8vw, 100px); }
.legal-body .col { max-width: 780px; }

.legal-body h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.legal-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.legal-body h3 { font-size: 16px; margin: 26px 0 8px; }
.legal-body p { margin: 0 0 14px; font-size: 15.2px; line-height: 1.68; color: var(--ink-2); }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; font-size: 15.2px; line-height: 1.68; color: var(--ink-2); }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(14, 91, 67, 0.28); }
.legal-body a:hover { border-bottom-color: var(--green); }
.legal-body strong { color: var(--ink); font-weight: 600; }

.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 4px 0 20px; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.legal-table th { font-weight: 600; color: var(--ink); width: 30%; }

.callout {
  padding: 18px 20px;
  border-left: 2px solid var(--green);
  background: var(--paper-2);
  border-radius: 0 6px 6px 0;
  margin: 0 0 22px;
}
.callout p:last-child { margin-bottom: 0; }

.toc {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 40px;
  background: var(--paper-2);
}
.toc p { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--ink-2); text-decoration: none; border: 0; }
.toc a:hover { color: var(--green); text-decoration: underline; }

/* ---------------- modal ---------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 26, 0.42);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  width: min(480px, 100%);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  padding: 30px 30px 26px;
  box-shadow: 0 24px 64px -20px rgba(20, 22, 26, 0.5);
}
.modal-panel h3 { margin-bottom: 10px; }
.modal-panel p { margin: 0 0 14px; font-size: 14.8px; line-height: 1.6; color: var(--ink-2); }
.modal-plan {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}
.modal-plan strong { font-weight: 600; }
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--paper-3); color: var(--ink); }

/* ---------------- responsive ---------------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .preview { align-items: flex-start; }
  .device { margin-inline: auto; }
  .swatches, .fineprint { margin-inline: auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .cell:nth-child(3n + 2), .cell:nth-child(3n + 3) { padding-left: 0; border-left: 0; }
  .cell:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .plan { border-left: 1px solid var(--rule); padding: 28px 22px; }
  .plan:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .plan:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px 0 0; }
  .step + .step { padding-left: 0; border-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .nav { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .cell { padding: 24px 0; border-left: 0 !important; }
  .cell:nth-child(2n) { padding-left: 0; }
  .cell:nth-child(n + 2) { border-bottom: 1px solid var(--rule); }
  .cell:last-child { border-bottom: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan { padding: 26px 0; border-left: 0; }
  .plan:nth-child(2n + 1) { padding-left: 0; }
  .plan + .plan { border-top: 1px solid var(--rule); }
  .dl div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
