/* Loomkeep marketing homepage — ported verbatim from the design's <style>,
   plus self-contained phone-mockup + mini-card styles (no dependency on the app shell). */
:root {
  --ink: #2e2640;
  --ink-soft: #6c5f67;
  --paper: #f4efe6;
  --surface: #fbf7f0;
  --accent: #c8923f;
  --night-a: #322746;
  --night-b: #201930;
  --line: rgba(46,38,64,0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(200,146,63,0.28); }
a { text-decoration: none; color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section { padding: 104px 0; }
.lk-paper { background: var(--paper); color: var(--ink); }
.lk-ink { background: linear-gradient(168deg, var(--night-a), var(--night-b)); color: var(--paper); }

.lk-hero-h1 { font-family: "Spectral", Georgia, serif; font-weight: 600;
  font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -1.2px; margin: 22px 0 0; text-wrap: balance; }
.lk-h2 { font-family: "Spectral", Georgia, serif; font-weight: 600;
  font-size: clamp(29px, 3.8vw, 43px); line-height: 1.1; letter-spacing: -0.6px; margin: 16px 0 0; text-wrap: balance; }
.lk-h2.light, .lk-hero-h1.light { color: var(--paper); }
.lk-h3 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 21px; letter-spacing: -0.2px; margin: 0 0 8px; }
.lk-lede { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.62; color: var(--ink-soft); margin: 18px auto 0; max-width: 660px; }
.lk-lede.center { text-align: center; }
.lk-lede.left { margin-left: 0; }
.lk-lede.light { color: rgba(244,239,230,0.74); }
.lk-body-sm { font-size: 15px; line-height: 1.58; color: var(--ink-soft); margin: 0; }
.lk-section-head.center { text-align: center; max-width: 760px; margin: 0 auto 64px; }

.lk-cta { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px;
  letter-spacing: 0.1px; padding: 13px 22px; border-radius: 999px; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.lk-cta:hover { transform: translateY(-1px); }
.lk-nav .lk-cta { padding: 9px 18px; font-size: 14px; }
.lk-cta.primary { background: var(--accent); color: #231a10; border: 1px solid var(--accent); }
.lk-cta.ghost { background: transparent; color: currentColor; border: 1px solid currentColor; }

.lk-nav { position: sticky; top: 0; z-index: 100;
  background: rgba(26,20,38,0.78); backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%); border-bottom: 1px solid rgba(244,239,230,0.08); }
.lk-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.lk-brand { display: inline-flex; align-items: center; gap: 11px; }
.lk-nav-links { display: flex; gap: 30px; }
.lk-nav-links a { font-size: 14.5px; font-weight: 500; color: rgba(244,239,230,0.78); transition: color .15s; }
.lk-nav-links a:hover { color: var(--paper); }
.lk-nav-right { display: flex; align-items: center; gap: 18px; }
.lk-nav-signin { font-size: 14.5px; font-weight: 500; color: rgba(244,239,230,0.82); }
.lk-nav-signin:hover { color: var(--paper); }

.lk-hero { position: relative; overflow: hidden; padding: 64px 0 92px; }
.night .lk-hero { background: radial-gradient(1100px 560px at 80% 6%, rgba(200,146,63,0.20), transparent 58%), linear-gradient(165deg, var(--night-a), var(--night-b) 78%); color: var(--paper); }
.day .lk-hero { background: radial-gradient(900px 500px at 82% 4%, rgba(200,146,63,0.16), transparent 60%), var(--paper); color: var(--ink); }
.lk-hero-mark { position: absolute; right: -210px; top: 50%; transform: translateY(-46%); opacity: 0.07; pointer-events: none; }
.day .lk-hero-mark { opacity: 0.05; }
.lk-hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 48px; align-items: center; min-height: 76vh; }
.lk-hero-copy { max-width: 560px; }
.lk-hero-sub { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; margin: 22px 0 0; max-width: 500px; }
.night .lk-hero-sub { color: rgba(244,239,230,0.78); }
.day .lk-hero-sub { color: var(--ink-soft); }
.lk-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.lk-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.3px; opacity: 0.66; }
.lk-hero-meta .dot { width: 3px; height: 3px; border-radius: 99px; background: currentColor; opacity: 0.6; }
.lk-hero-phone { display: flex; justify-content: center; }
.lk-phone-shadow { filter: drop-shadow(0 50px 70px rgba(20,12,30,0.5)); }
.lk-phone-shadow.soft { filter: drop-shadow(0 36px 54px rgba(46,38,64,0.22)); }

.lk-loop-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 8px; }
.lk-loop-thread { position: absolute; top: 27px; left: 16.66%; right: 16.66%; height: 0; border-top: 2px dashed rgba(200,146,63,0.5); }
.lk-loop-step { position: relative; text-align: center; padding: 0 8px; }
.lk-loop-node { position: relative; z-index: 2; width: 54px; height: 54px; border-radius: 999px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; background: var(--surface);
  border: 1.5px solid var(--accent); color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: 16px; font-weight: 500; }
.lk-loop-step .lk-body-sm { max-width: 280px; margin: 0 auto; }

.lk-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lk-feature.rev .lk-feature-copy { order: 2; }
.lk-feature-copy { max-width: 480px; }
.lk-feature.rev .lk-feature-copy { margin-left: auto; }
.lk-feature-phone { display: flex; justify-content: center; }
.lk-bullets { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lk-bullets li { display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.lk-tick { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); border-radius: 1.5px; flex-shrink: 0; margin-top: 6px; }

.lk-ref-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.lk-lens-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.lk-lens { font-size: 13.5px; font-weight: 600; padding: 8px 15px; border-radius: 999px;
  border: 1px solid rgba(244,239,230,0.22); color: rgba(244,239,230,0.88); }
.lk-ref-cards { display: flex; justify-content: center; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.4)); }

.lk-priv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 880px; margin: 0 auto; }
.lk-priv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 24px;
  box-shadow: 0 2px 12px rgba(46,38,64,0.05); }
.lk-priv-card .lk-h3 { color: var(--ink); }

.lk-about-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.lk-about-inner > svg { margin: 0 auto 8px; display: block; }
.lk-about-body { margin-top: 22px; }
.lk-about-body p { font-size: 17.5px; line-height: 1.74; color: var(--ink-soft); margin: 0 0 18px; }
.lk-about-body em { font-style: italic; color: var(--ink); }
.lk-sign { font-family: "IBM Plex Mono", monospace; font-size: 13.5px; letter-spacing: 0.3px; color: var(--ink-soft); margin-top: 10px; }

.lk-get { position: relative; overflow: hidden; text-align: center; }
.lk-get-inner { position: relative; max-width: 640px; margin: 0 auto; }
.lk-get-mark { position: absolute; left: 50%; top: -150px; transform: translateX(-50%); opacity: 0.07; pointer-events: none; }
.lk-store-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.lk-store { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 1px solid rgba(244,239,230,0.28); color: var(--paper); border-radius: 14px; padding: 11px 20px; transition: transform .12s, background .2s; }
.lk-store:hover { transform: translateY(-1px); background: rgba(244,239,230,0.06); }
.lk-store-sub { font-size: 10.5px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.4px; opacity: 0.66; text-transform: uppercase; }
.lk-store-main { font-family: "Spectral", serif; font-size: 19px; font-weight: 600; }
.lk-email { display: flex; gap: 10px; max-width: 460px; margin: 28px auto 0; }
.lk-email input { flex: 1; min-width: 0; background: rgba(244,239,230,0.07); border: 1px solid rgba(244,239,230,0.2);
  border-radius: 999px; padding: 13px 20px; color: var(--paper); font-family: inherit; font-size: 15px; outline: none; }
.lk-email input::placeholder { color: rgba(244,239,230,0.5); }
.lk-email input:focus { border-color: var(--accent); }
.lk-email button { border: none; cursor: pointer; background: var(--accent); color: #231a10; font-weight: 600;
  font-family: inherit; font-size: 15px; padding: 13px 24px; border-radius: 999px; white-space: nowrap; }

.lk-footer { background: #1a1426; color: var(--paper); padding: 64px 0 40px; }
.lk-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.lk-footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(244,239,230,0.6); max-width: 320px; margin: 16px 0 0; }
.lk-footer-col h4 { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(244,239,230,0.5); margin: 4px 0 16px; }
.lk-footer-col a { display: block; font-size: 14.5px; color: rgba(244,239,230,0.8); margin-bottom: 11px; transition: color .15s; }
.lk-footer-col a:hover { color: var(--accent); }
.lk-footer-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(244,239,230,0.1);
  font-size: 12.5px; color: rgba(244,239,230,0.5); }
.lk-kicker { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); }

/* ── Phone mockups (self-contained; amber-light app palette, scoped) ──────── */
.lk-phone { --p-paper:#f3ede2; --p-surface:#fbf7f0; --p-surfaceAlt:#f6efe4; --p-ink:#2c2230;
  --p-inkSoft:#6c5f67; --p-inkFaint:#a2949b; --p-line:rgba(44,34,48,0.10); --p-brand:#4a2e46;
  --p-accent:#c8923f; --p-shadow:rgba(60,40,50,0.10);
  width: 300px; border-radius: 44px; padding: 10px; background: #2a2233;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06); }
.lk-phone-screen { background: var(--p-paper); border-radius: 36px; overflow: hidden; position: relative;
  padding: 38px 18px 22px; min-height: 560px; color: var(--p-ink);
  font-family: "Hanken Grotesk", sans-serif; }
.lk-phone-screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; background: #2a2233; border-radius: 999px; }
.lk-ph-head .k { font-size: 12px; font-weight: 600; color: var(--p-accent); letter-spacing: 0.3px; margin-bottom: 6px; }
.lk-ph-head h3 { margin: 0; font-family: "Spectral", serif; font-size: 22px; font-weight: 600; color: var(--p-ink);
  line-height: 1.14; letter-spacing: -0.3px; }
.lk-ph-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--p-inkFaint); margin: 18px 0 10px; }
.lk-ph-surface { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 16px;
  padding: 14px 16px; box-shadow: 0 2px 10px var(--p-shadow); }
.lk-ph-soft { background: var(--p-surfaceAlt); border-radius: 16px; padding: 14px 16px; }
.lk-ph-quote { padding-left: 13px; border-left: 2px solid var(--p-accent); font-family: "Spectral", serif;
  font-size: 15.5px; font-style: italic; color: var(--p-ink); line-height: 1.5; }
.lk-ph-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; background: rgba(200,146,63,0.16); color: var(--p-accent); }
.lk-ph-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--p-line); color: var(--p-inkSoft); }
.lk-ph-chip.on { background: rgba(200,146,63,0.16); color: var(--p-accent); border-color: transparent; }
.lk-ph-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--p-brand); color: #fbf3e6; font-weight: 600; font-size: 15px; padding: 13px; border-radius: 14px; }
.lk-ph-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lk-ph-stat .v { font-family: "Spectral", serif; font-size: 28px; font-weight: 600; line-height: 1; color: var(--p-ink); }
.lk-ph-stat .l { font-size: 12px; color: var(--p-inkSoft); margin-top: 4px; }
.lk-bar-track { height: 8px; border-radius: 999px; background: var(--p-surfaceAlt); overflow: hidden; }
.lk-bar-fill { height: 100%; border-radius: 999px; background: var(--p-brand); }
.lk-connector { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.lk-connector .ln { flex: 1; height: 1px; background: var(--p-line); }
.lk-connector .ar { color: var(--p-accent); }

/* mini card token */
.lk-card { width: 64px; height: 104px; border-radius: 9px; background: var(--p-surface);
  border: 1px solid var(--p-line); box-shadow: 0 4px 12px var(--p-shadow); display: flex; flex-direction: column;
  position: relative; overflow: hidden; flex-shrink: 0; }
.lk-card .art { flex: 1; margin: 5px 5px 0; border-radius: 6px; background: rgba(200,146,63,0.14);
  display: flex; align-items: center; justify-content: center; }
.lk-card .glyph { font-size: 26px; color: var(--p-accent); line-height: 1; }
.lk-card.rev .glyph { transform: rotate(180deg); }
.lk-card .nm { font-family: "Spectral", serif; font-size: 8.5px; font-weight: 600; color: var(--p-ink);
  text-align: center; line-height: 1.1; padding: 5px 4px 6px; }

@media (max-width: 940px) {
  .section { padding: 76px 0; }
  .lk-nav-links { display: none; }
  .lk-hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; min-height: 0; }
  .lk-hero-copy { max-width: 620px; margin: 0 auto; }
  .lk-hero-sub { margin-left: auto; margin-right: auto; }
  .lk-hero-actions, .lk-hero-meta { justify-content: center; }
  .lk-hero-mark { opacity: 0.05; right: -260px; }
  .lk-feature-grid, .lk-ref-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .lk-feature.rev .lk-feature-copy { order: 0; }
  .lk-feature-copy { max-width: 560px; margin: 0 auto !important; }
  .lk-lede.left { margin-left: auto; margin-right: auto; }
  .lk-bullets { display: inline-flex; text-align: left; }
  .lk-lens-row { justify-content: center; }
  .lk-loop-grid { grid-template-columns: 1fr; gap: 40px; max-width: 420px; margin: 0 auto; }
  .lk-loop-thread { display: none; }
  .lk-priv-grid { grid-template-columns: 1fr; }
  .lk-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 20px; }
  .lk-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .lk-email { flex-direction: column; }
  .lk-email button { width: 100%; }
}
