:root {
  /* Atlas Innovations (parent brand) */
  --ink: #0d0f12;
  --ink-2: #16191e;
  --paper: #f5f3ee;
  --card: #ffffff;
  --line: #e3dfd6;
  --text: #15171b;
  --muted: #5d626b;
  --on-ink: #f5f3ee;
  --on-ink-muted: #a4a9b2;
  --orange: #ff5b14;
  --orange-deep: #d94a08;
  --radius: 18px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* InstantEditor brand kit v1.0 */
  --ie-ink: #172322;
  --ie-coral: #FF795E;
  --ie-coral-hover: #FF8C75;
  --ie-sage: #DDECE4;
  --ie-slate: #526461;
  --ie-font: "Manrope", system-ui, sans-serif;

  /* Sently brand concept v1 */
  --se-midnight: #142D3B;
  --se-teal: #087E83;
  --se-teal-hover: #066A6E;
  --se-mint: #DDF4EC;
  --se-slate: #536570;
  --se-font: Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.55 var(--font); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(13, 15, 18, 0.94); backdrop-filter: blur(10px); color: var(--on-ink); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 125%; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.mark { width: 22px; height: 22px; flex: none; }
nav.links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav.links a:not(.btn) { color: var(--on-ink-muted); text-decoration: none; }
nav.links a:not(.btn):hover { color: var(--on-ink); }
@media (max-width: 680px) { nav.links a:not(.btn) { display: none; } }
@media (max-width: 440px) { header.site .btn { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
/* InstantEditor: ink text on coral, never white on coral */
.btn-ie { background: var(--ie-coral); color: var(--ie-ink); font-family: var(--ie-font); }
.btn-ie:hover { background: var(--ie-coral-hover); }
.btn-ie:focus-visible { outline: 3px solid var(--ie-ink); outline-offset: 3px; }
/* Sently: white text on teal, 10px radius */
.btn-sently { background: var(--se-teal); color: #fff; border-radius: 10px; font-family: var(--se-font); }
.btn-sently:hover { background: var(--se-teal-hover); }
.btn-sently:focus-visible { outline: 3px solid var(--se-midnight); outline-offset: 3px; }

/* Type */
.eyebrow { font-weight: 700; font-stretch: 125%; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.eyebrow.deep { color: var(--orange-deep); }
.display { font-weight: 900; font-stretch: 112%; font-size: clamp(44px, 8vw, 96px); }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--on-ink-muted); max-width: 42ch; margin: 24px 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); padding-block: 96px 108px; }
.hero::before { content: ""; position: absolute; right: -12%; bottom: -55%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 91, 20, 0.3), transparent 72%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: repeating-linear-gradient(90deg, var(--orange) 0 48px, transparent 48px 72px); opacity: 0.8; }
.hero .wrap { position: relative; }

/* Sections */
section.block { padding-block: 88px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2, .split h2, .about h2 { font-weight: 900; font-stretch: 112%; font-size: clamp(32px, 5vw, 52px); }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 14px; }

/* Product cards: each card follows its own product's brand kit */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .products { grid-template-columns: minmax(0, 1fr); } }
.product { --accent: var(--ie-coral); display: flex; flex-direction: column; gap: 16px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 16px; padding: 32px; scroll-margin-top: 90px; }
@media (max-width: 480px) { .product { padding: 24px 20px; } }
.product .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.lockup { display: block; width: auto; }
.pill { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); white-space: nowrap; }
.product h3 { font-weight: 700; font-stretch: normal; font-size: clamp(26px, 3.2vw, 34px); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 7px; height: 13px; margin: 4px 5px 0 4px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.product .btn { align-self: flex-start; margin-top: auto; }

.product.ie { font-family: var(--ie-font); color: var(--ie-ink); }
.product.ie .lockup { height: 40px; }
/* On phones the section heading already says "Now in early access"; the pill would wrap under the logo */
@media (max-width: 480px) { .product .pill { display: none; } }
.product.ie .descriptor { color: var(--ie-slate); font-weight: 600; font-size: 15px; }
.product.ie h3 { letter-spacing: -0.02em; }
.product.ie p:not(.descriptor):not(.proof) { color: var(--ie-slate); }
.proof { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; font-weight: 700; }

.product.sently { --accent: var(--se-teal); font-family: var(--se-font); color: var(--se-midnight); }
.product.sently .lockup { height: 44px; }
/* App icon in front of the wordmark. The gap plus the wordmark SVG's own side padding
   meets the kit's clear-space rule (half the capital S height). */
.se-lockup { display: flex; align-items: center; gap: 10px; }
.se-icon { flex: none; width: 40px; height: 40px; }
.se-lockup > img:last-child { transform: translateY(7%); } /* the wordmark canvas sits its letters above centre */
.product.sently .pill { font-family: var(--se-font); }
.product.sently .descriptor { color: var(--se-teal); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.product.sently h3 { letter-spacing: -0.01em; }
.product.sently p:not(.descriptor) { color: var(--se-slate); }

/* About */
.about { background: var(--card); border-block: 1px solid var(--line); }
.about-grid, .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .about-grid, .split { grid-template-columns: 1fr; gap: 20px; } }
.about-copy, .split-copy { display: grid; gap: 18px; font-size: 19px; }
.about-copy .btn, .split-copy .btn { justify-self: start; }

/* Footer */
footer.site { padding-block: 32px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer.site nav { display: flex; gap: 20px; }

/* Early access page: an InstantEditor landing inside the Atlas shell */
.early-hero { background: var(--ie-ink); color: var(--on-ink); padding-block: 48px 72px; font-family: var(--ie-font); }
.early .display { font-family: var(--ie-font); font-weight: 700; font-stretch: normal; letter-spacing: -0.03em; font-size: clamp(44px, 7vw, 76px); }
.early .lede { margin-bottom: 0; }
.early-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: "head form" "body form"; column-gap: 56px; align-items: start; }
.pitch-head { grid-area: head; }
.pitch-body { grid-area: body; }
.formcard { grid-area: form; }
@media (max-width: 900px) {
  .early-grid { grid-template-columns: 1fr; grid-template-areas: "head" "form" "body"; row-gap: 28px; }
}
.hero-lockup { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero-lockup img { height: 34px; width: auto; }
.tag { font: 700 12px/1 var(--ie-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ie-ink); background: var(--ie-coral); padding: 7px 10px; border-radius: 999px; }
.event-banner { display: inline-block; background: rgba(255, 121, 94, 0.14); color: #ffb9a8; border: 1px solid rgba(255, 121, 94, 0.4); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-weight: 700; color: var(--ie-coral); }
.steps strong { display: block; color: var(--on-ink); font-size: 18px; }
.steps span { color: var(--on-ink-muted); }
.proof-dark { margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border-left: 3px solid var(--ie-coral); font-weight: 600; }

.formcard { background: var(--card); color: var(--ie-ink); border-radius: 22px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); scroll-margin-top: 84px; }
@media (max-width: 480px) { .formcard { padding: 22px; } }
.formcard h2 { font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.formcard .sub { color: var(--ie-slate); margin: 8px 0 22px; font-size: 16px; }
.formcard .btn[type="submit"] { width: 100%; padding: 17px; font-size: 17px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.field input { width: 100%; font: 400 17px/1.3 var(--ie-font); padding: 13px 14px; border: 1.5px solid #D8DEDA; border-radius: 10px; background: #fff; color: var(--ie-ink); }
.field input:focus { outline: none; border-color: var(--ie-coral); box-shadow: 0 0 0 4px rgba(255, 121, 94, 0.2); }
.choice-group { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; min-width: 0; }
.choice-group legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid #D8DEDA; border-radius: 12px; padding: 12px 14px; cursor: pointer; margin-bottom: 0; }
.choice input { flex: none; width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--ie-coral); }
.choice-icon { flex: none; width: 28px; height: 28px; }
.choice b { display: block; font-size: 16px; }
.choice small { display: block; color: var(--ie-slate); font-size: 14px; line-height: 1.35; }
.choice:has(input:checked) { border-color: var(--ie-coral); background: #fff2ee; }
.choice.sently input { accent-color: var(--se-teal); }
.choice.sently b { font-family: var(--se-font); color: var(--se-midnight); }
.choice.sently:has(input:checked) { border-color: var(--se-teal); background: var(--se-mint); }
.choice.compact { align-items: center; justify-content: center; }
.choice.compact input { margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#step2 > .choice { margin-bottom: 20px; }
.error { color: #c62828; font-size: 14px; margin-top: 10px; }
.error:empty { display: none; }
.fine { font-size: 13px; color: var(--ie-slate); margin-top: 14px; }
.okay { color: #138a4a; font-weight: 700; margin-bottom: 8px; }
.linkish { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--ie-slate); font: 400 14px var(--ie-font); text-decoration: underline; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sently panel on the early access page */
.sently-panel { background: var(--se-mint); border-radius: 16px; padding: clamp(28px, 5vw, 56px); font-family: var(--se-font); color: var(--se-midnight); }
.sently-panel .label { color: var(--se-teal); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.sently-panel .se-lockup { gap: 12px; margin-bottom: 12px; }
.sently-panel .se-icon { width: 48px; height: 48px; }
.sently-panel .wordmark-img { display: block; height: 52px; width: auto; }
.sently-panel h2 { font-weight: 700; font-stretch: normal; letter-spacing: -0.01em; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; }
.sently-panel .split-copy p { color: var(--se-slate); font-size: 18px; }

/* Sently landing page (/sently): Sently brand inside the Atlas shell */
.se-hero { background: var(--se-midnight); color: #fff; padding-block: 48px 72px; font-family: var(--se-font); }
.se-hero .display { font-family: var(--se-font); font-weight: 700; font-stretch: normal; letter-spacing: -0.02em; font-size: clamp(40px, 6.4vw, 70px); line-height: 1.04; }
.se-hero .lede { color: #c9d6dc; margin-bottom: 0; }
.se-hero .hero-lockup { gap: 12px; }
/* The midnight icon would vanish on the midnight hero: a faint ring shows its edge without recoloring it */
.se-hero .hero-lockup .se-icon { width: 44px; height: 44px; border-radius: 21.5%; box-shadow: 0 0 0 1.5px rgba(221, 244, 236, 0.45); }
.se-hero .hero-lockup .wordmark-img { height: 48px; width: auto; }
.se-hero .hero-lockup > img:last-of-type { transform: translateY(7%); }
.se-hero .tag { font-family: var(--se-font); color: var(--se-midnight); background: var(--se-mint); margin-left: 4px; }
.se-label { color: var(--se-mint); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.se-hero .steps li::before { color: var(--se-mint); }
.se-hero .steps span { color: #c9d6dc; }
.se-features { list-style: none; margin: 28px 0 0; padding: 16px 18px; display: grid; gap: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border-left: 3px solid var(--se-mint); }
.se-features li { display: flex; gap: 12px; font-weight: 600; }
.se-features li::before { content: ""; flex: none; width: 7px; height: 13px; margin: 3px 5px 0 4px; border: solid var(--se-mint); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.sently-page .formcard { font-family: var(--se-font); color: var(--se-midnight); }
.sently-page .formcard h2 { letter-spacing: -0.01em; }
.sently-page .formcard .sub, .sently-page .fine, .sently-page .choice small, .sently-page .linkish { color: var(--se-slate); font-family: var(--se-font); }
.sently-page .field input { font-family: var(--se-font); color: var(--se-midnight); }
.sently-page .field input:focus { border-color: var(--se-teal); box-shadow: 0 0 0 4px rgba(8, 126, 131, 0.18); }
.sently-page #step2 .choice input { accent-color: var(--se-teal); }
.sently-page #step2 .choice:has(input:checked) { border-color: var(--se-teal); background: var(--se-mint); }
.ie-cross { height: 40px; margin-top: 4px; }

/* Prose pages */
.prose { max-width: 720px; padding-block: 64px 88px; }
.prose h1 { font-weight: 900; font-stretch: 112%; font-size: clamp(36px, 6vw, 56px); margin-bottom: 24px; }
.prose h2 { font-weight: 800; font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: #33373e; }
.prose p + p { margin-top: 12px; }
