/* ===========================================================
   Second Pass — Editorial Quiet Luxury
   Built against the Second Pass design system, v1.0 (2026).
   Calm over clutter. Editorial over SaaS. Green is an accent,
   not the entire identity.
   =========================================================== */

:root {
  --color-black: #111411;
  --color-hunter: #17231D;
  --color-forest: #354D3B;
  --color-sage: #617565;
  --color-soft-sage: #A7B8A8;

  --color-background: #F3F4F0;
  --color-surface: #FFFFFF;
  --color-surface-soft: #ECEFEA;

  --color-text: #111411;
  --color-text-secondary: #4F5851;
  --color-text-muted: #69716B;

  --color-border: #D9DED9;
  --color-border-dark: #B9C2BA;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-md: 10px;
  --radius-pill: 999px;

  --max-w: 760px;
  --margin: clamp(20px, 6vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; font-family: var(--font-sans); color: var(--color-text); }

p { margin: 0 0 1.1em; max-width: 62ch; color: var(--color-text); }
p em { font-style: normal; color: var(--color-hunter); font-weight: 600; }

a { color: var(--color-text); text-underline-offset: 4px; text-decoration-color: var(--color-hunter); }
a:hover { color: var(--color-hunter); }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--color-hunter);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--margin);
}

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

header.site {
  padding: 32px var(--margin) 0;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wordmark-icon { width: 26px; height: 26px; flex-shrink: 0; }

nav.site-nav { display: flex; gap: 26px; }
nav.site-nav a {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  text-decoration: none;
}
nav.site-nav a:hover, nav.site-nav a[aria-current="page"] { color: var(--color-hunter); }

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

.hero {
  background: var(--color-sage);
  padding: 72px 0 44px;
}

.hero .eyebrow {
  display: inline-block;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.85;
}

/* the big animated name */
.name-hero {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 13vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.15em;
  color: #FFFFFF;
}

.name-hero .letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(36px);
  animation: letter-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes letter-in {
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .name-hero .letter {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* the edit mark: strike, then caret below, drawn in after the letters land */
.name-hero .edit-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.name-hero .edit-overlay .strike {
  fill: none;
  stroke: #FFFFFF;
  stroke-opacity: 0.55;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: sp-draw 0.4s ease-out 1.25s forwards;
}

/* caret lives in its own uniformly scaled svg so it keeps the logo's 36:20 shape */
.name-hero .edit-caret {
  position: absolute;
  left: 63.75%;
  top: 0.8em;
  width: 0.82em;
  height: 0.492em;
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}

.name-hero .edit-caret path {
  fill: none;
  stroke: var(--color-hunter);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 54;
  stroke-dashoffset: 54;
  animation: sp-draw 0.35s cubic-bezier(0.65, 0, 0.35, 1) 1.65s forwards;
}

@keyframes sp-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .name-hero .edit-overlay .strike,
  .name-hero .edit-caret path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.hero .tagline {
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.6em;
}

.hero .tagline em { font-style: normal; color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); text-underline-offset: 4px; }

.hero h1 { color: #FFFFFF; margin-bottom: 0.3em; }

.hero .lede { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); max-width: 52ch; }

/* ---------- rule / section ---------- */

.rule {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

section.block {
  padding: 48px var(--margin);
  max-width: var(--max-w);
  margin: 0 auto;
}

section.block.tight { padding-top: 24px; padding-bottom: 24px; }

/* ---------- "Latest" feed ---------- */

.log-item {
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
}

.log-item:last-child { border-bottom: 1px solid var(--color-border); }

.log-item .status {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  padding-top: 0.2em;
}

.log-item .status.live { color: var(--color-hunter); }

.log-item h3 { margin-bottom: 8px; }
.log-item p { margin-bottom: 10px; color: var(--color-text-secondary); }
.log-item a.visit { font-size: 0.95rem; color: var(--color-hunter); text-decoration-color: var(--color-hunter); font-weight: 600; }

@media (max-width: 480px) {
  .log-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- principles ---------- */

.principles { margin: 0; padding: 0; list-style: none; }
.principles li {
  border-top: 1px solid var(--color-border);
  border-left: 3px solid var(--color-hunter);
  padding: 26px 0 26px 24px;
}
.principles li:last-child { border-bottom: 1px solid var(--color-border); }
.principles h3 { margin-bottom: 8px; font-family: var(--font-sans); font-weight: 700; font-size: 1.1rem; }
.principles p { margin-bottom: 0; color: var(--color-text-secondary); }

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

footer.site {
  padding: 44px var(--margin) 60px;
  max-width: 100%;
  margin: 40px 0 0;
  background: var(--color-black);
  color: #9EA79F;
  font-size: 0.92rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

footer.site a { color: #9EA79F; text-decoration-color: transparent; padding: 4px 0; display: inline-block; }
footer.site a:hover { color: var(--color-soft-sage); }
footer.site .legal-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- legal page typography ---------- */

.legal h2 {
  margin-top: 1.8em;
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-forest);
}
.legal .updated { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 2.5em; }
.legal .draft-note {
  border: 1px solid var(--color-border);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5em;
}
.legal p, .legal li { color: var(--color-text); }

/* ---------- misc ---------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  color: var(--color-black);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 8px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.btn:hover { border-color: var(--color-black); background: var(--color-black); color: #FFFFFF; }

/* ===========================================================
   v1.1 additions — teaser, signup, proof marks, header CTA
   =========================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* header: breathing room above the hero, nav aligned to the wordmark */
header.site { align-items: center; padding-bottom: 28px; }
nav.site-nav { align-items: center; gap: 22px; }
nav.site-nav a.nav-cta {
  color: var(--color-black);
  font-weight: 600;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
nav.site-nav a.nav-cta:hover { background: var(--color-black); border-color: var(--color-black); color: #FFFFFF; }

/* proof-mark divider: a rule with an insertion caret */
.mark-rule {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--margin);
  position: relative;
  height: 22px;
}
.mark-rule::before {
  content: "";
  position: absolute;
  left: var(--margin); right: var(--margin); top: 0;
  border-top: 1px solid var(--color-border);
}
.mark-rule svg {
  position: absolute; top: 2px; left: var(--margin);
  width: 30px; height: 18px; overflow: visible;
}
.mark-rule path {
  fill: none; stroke: var(--color-hunter); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}

.section-lede { color: var(--color-text-secondary); margin-bottom: 1.6em; }

/* first-app teaser */
.app-teaser {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 720px) {
  .app-teaser { grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
}

.teaser-visual { margin: 0; }
.teaser-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-hunter);
  border-radius: 12px;
  padding: 9px;
  overflow: hidden;
}
.teaser-screen {
  position: absolute; inset: 9px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(160deg, #4A6350, #2A3B30);
  filter: blur(9px);
  transform: scale(1.08);
}
.teaser-cue {
  position: absolute; top: 20px; right: 20px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #F3F4F0;
  box-shadow: 0 0 0 4px rgba(243, 244, 240, 0.18);
  animation: cue-pulse 3.2s ease-in-out infinite;
}
@keyframes cue-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.teaser-visual figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.teaser-copy .status {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-forest); margin-bottom: 10px;
}
.teaser-copy h3 {
  font-family: var(--font-display);
  font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.teaser-copy > p { color: var(--color-text-secondary); }

/* the studio's caret, centered on the teaser: no hint of what the app does */
.teaser-mark {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 38px;
  transform: translate(-50%, -50%);
  fill: none; stroke: #F3F4F0; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.85;
}

/* signup */
.notify-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.notify-form input[type=email] {
  flex: 1 1 220px; min-width: 0;
  padding: 12px 14px;
  font: inherit; font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
}
.notify-form input[type=email]:focus { outline: 2px solid var(--color-hunter); outline-offset: 1px; border-color: var(--color-hunter); }
.btn-dark { background: var(--color-black); border-color: var(--color-black); color: #FFFFFF; margin-top: 0; cursor: pointer; font-family: inherit; }
.btn-dark:hover { background: var(--color-hunter); border-color: var(--color-hunter); }
.form-note { flex-basis: 100%; font-size: 0.85rem; color: var(--color-text-muted); margin: 2px 0 0; }
.form-thanks { margin-top: 20px; font-weight: 600; color: var(--color-hunter); }

/* "What we cut" */
.cut-list { list-style: none; margin: 0; padding: 0; }
.cut-list li {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  display: grid; gap: 4px;
}
.cut-list .cut {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
  color: var(--color-text-muted);
  text-decoration: none;
  background-image: linear-gradient(var(--color-hunter), var(--color-hunter));
  background-repeat: no-repeat;
  background-position: 0 56%;
  background-size: 100% 2.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: inherit;
  justify-self: start;
}
.js .cut-list li:not(.is-cut) .cut { background-size: 0% 2.5px; }
.cut-list .why { color: var(--color-text-secondary); font-size: 0.98rem; }

@media (prefers-reduced-motion: reduce) {
  .teaser-cue { animation: none; opacity: 1; }
  .cut-list .cut { transition: none; }
  .js .cut-list li:not(.is-cut) .cut { background-size: 100% 2.5px; }
}
