/* The Cave hub */
:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --sunk: #f3f1ec;
  --ink: #121826;
  --ink-2: #3d4454;
  --muted: #6b7080;
  --line: #e7e4dd;
  --line-2: #d9d5cc;
  --accent: #c8572a;
  --good: #1e7a4c;
  --good-bg: #e8f4ed;
  --soon-bg: #fbeee6;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(18,24,38,.04), 0 12px 32px -18px rgba(18,24,38,.22);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0; letter-spacing: -.022em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251,250,247,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.top.lined, .top { border-bottom-color: var(--line); }
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 36px; height: auto; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav nav a { text-decoration: none; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
.nav nav .btn { color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #283148; border-color: #283148; }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* type helpers */
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-block: 84px 72px; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; }
.hero-logo { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 40px 34px; box-shadow: var(--shadow); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 26px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--head); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }

/* sections */
.section { padding-block: 104px; }
.section.alt { background: var(--sunk); border-block: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-head > p { color: var(--ink-2); max-width: 30em; justify-self: end; }

/* product rows */
.products { display: grid; gap: 28px; }
.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.product:nth-child(even) .shot { order: 2; border-left: 1px solid var(--line); border-right: 0; }
.shot { display: block; position: relative; background: #0f1422; border-right: 1px solid var(--line); min-height: 360px; overflow: hidden; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s ease; }
a.shot:hover img { transform: scale(1.02); }
.info { padding: 40px 42px; display: flex; flex-direction: column; gap: 14px; }
.info-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pill { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--good-bg); color: var(--good); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.soon { background: var(--soon-bg); color: #9a4316; }
.info h3 { font-size: 30px; }
.tagline { font-size: 17.5px; color: var(--ink-2); }
.feats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.feats li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; }
.feats li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.meta small { color: var(--muted); font-size: 13.5px; }

/* principles */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.tile .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--sunk); display: grid; place-items: center; margin-bottom: 18px; color: var(--ink); }
.tile .ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 18.5px; margin-bottom: 8px; letter-spacing: -.01em; }
.tile p { color: var(--ink-2); font-size: 15px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.timeline li { position: relative; padding: 32px 18px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); }
.timeline time { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.timeline b { display: block; font-family: var(--head); font-size: 17px; letter-spacing: -.01em; margin-bottom: 4px; }
.timeline span { font-size: 14.5px; color: var(--ink-2); }

/* letter */
.letter { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.letter h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 18px; }
.letter-paper { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 52px 56px; font-size: 17.5px; line-height: 1.8; color: var(--ink-2); box-shadow: var(--shadow); }
.letter-paper p + p { margin-top: 1.1em; }
.letter-paper p:first-child { color: var(--ink); font-size: 19px; }
.sign { margin-top: 2em !important; padding-top: 1.4em; border-top: 1px solid var(--line); }
.sign b { display: block; font-family: "Segoe Script", "Bradley Hand", "Snell Roundhand", cursive; font-weight: 400; font-size: 30px; color: var(--ink); line-height: 1.2; }
.sign small { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* faq */
.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.faq h2 { font-size: clamp(32px, 4vw, 44px); }
.qa { border-top: 1px solid var(--line-2); }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 40px 24px 0; color: var(--ink-2); }

/* share */
.share { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 44px 48px; margin-top: 72px; margin-bottom: -40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.share h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
@media (max-width: 960px) { .share { grid-template-columns: 1fr; padding: 32px 26px; margin-top: 56px; } }

/* contact */
.cta { background: var(--ink); color: #e6e8ee; border-radius: var(--radius-lg); padding: 64px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.cta p { color: #b9bfcc; }
.cta .eyebrow { color: #f0a47f; }
.cta-side { display: grid; gap: 12px; justify-items: start; }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn:hover { background: #e9ebf0; }
.mail { font-weight: 600; color: #fff; word-break: break-all; }

/* sub pages */
.ph { padding-block: 64px 72px; }
.ph h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 20px; max-width: 18em; }
.ph .lede { margin-bottom: 28px; }
.big-shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 40px 0 0; }
.big-shot img { width: 100%; height: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; padding: 0; margin: 0; }
.steps li { list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--head); font-weight: 700; color: var(--accent); font-size: 15px; letter-spacing: .08em; margin-bottom: 10px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15.5px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.panel h2 { font-size: 30px; }
.panel p { margin-top: 14px; color: var(--ink-2); }
.panel.dark { background: var(--ink); border-color: var(--ink); color: #e6e8ee; }
.panel.dark h2 { color: #fff; }
.panel.dark p { color: #b9bfcc; }
.panel.dark .kicker { color: #f0a47f; }
.panel.dark .btn { margin-top: 24px; background: #fff; color: var(--ink); border-color: #fff; }
.checklist { padding-left: 1.2em; color: var(--ink-2); margin: 14px 0 0; }
.checklist li { margin: 6px 0; }
.legal { max-width: 760px; }
.legal h2 { font-size: 24px; margin: 44px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
.legal th, .legal td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 64px 36px; margin-top: 8px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 26em; }
.foot h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.foot ul a { text-decoration: none; color: var(--ink-2); }
.foot ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }

@media (max-width: 960px) {
  .hero, .letter, .faq, .duo, .cta, .section-head { grid-template-columns: 1fr; }
  .section-head > p { justify-self: start; }
  .hero { padding-block: 48px 56px; gap: 40px; }
  .hero-logo { max-width: 440px; }
  .product, .product:nth-child(even) { grid-template-columns: 1fr; }
  .product:nth-child(even) .shot { order: 0; border-left: 0; }
  .shot { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 16 / 10; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li { padding: 0 0 0 34px; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 76px; }
}
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .info { padding: 28px 24px; }
  .info h3 { font-size: 26px; }
  .grid4 { grid-template-columns: 1fr; }
  .letter-paper { padding: 32px 24px; font-size: 16.5px; }
  .cta { padding: 40px 26px; }
  .panel { padding: 30px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
