:root {
  --indigo: #1e2b5e;
  --indigo-deep: #141d42;
  --linen: #f2f3ef;
  --paper: #ffffff;
  --ink: #1a1c22;
  --thread: #e3b23c;
  --seam: #8a8f9c;
  --muted: #4d5263;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--thread);
  outline-offset: 3px;
}

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

/* The seam: a stitched line used to separate every part of the page. */
.seam {
  height: 0;
  border: 0;
  border-top: 2px dashed var(--seam);
  margin: 0;
  opacity: .55;
}

/* Header */
.site-header {
  background: var(--indigo);
  color: var(--linen);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.wordmark {
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark svg { flex: none; }
.site-nav {
  display: flex;
  gap: clamp(12px, 2.4vw, 28px);
  font-size: .95rem;
}
.site-nav a { text-decoration: none; opacity: .85; }
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-nav .lang {
  border: 1px solid rgba(242, 243, 239, .45);
  border-radius: 4px;
  padding: 1px 8px;
  opacity: 1;
}

/* Hero */
.hero {
  background: var(--indigo);
  color: var(--linen);
  padding: clamp(56px, 10vw, 128px) 0 0;
  overflow: hidden;
}
.hero h1 {
  margin: 0;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(2.4rem, 7.2vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 15ch;
}
.hero .lede {
  margin: 28px 0 0;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(242, 243, 239, .82);
}
.hero-actions {
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  background: var(--thread);
  color: var(--indigo-deep);
}
.btn:hover { background: #edc25a; }
.btn-ghost {
  background: transparent;
  color: var(--linen);
  border: 1px solid rgba(242, 243, 239, .5);
}
.btn-ghost:hover { background: rgba(242, 243, 239, .08); }

/* The hero thread: one stitched line running from the headline out of the page. */
.thread {
  margin-top: clamp(48px, 8vw, 96px);
  display: block;
  width: 100%;
  height: 64px;
}
.thread path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 3;
  stroke-dasharray: 14 10;
  stroke-linecap: round;
  animation: sew 2.4s ease-out both;
}
@keyframes sew {
  from { stroke-dashoffset: 600; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .thread path { animation: none; }
}

/* Facts strip */
.facts {
  background: var(--indigo-deep);
  color: var(--linen);
}
.facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts div {
  padding: 22px 20px 22px 0;
  border-right: 2px dashed rgba(138, 143, 156, .45);
  padding-left: 20px;
}
.facts div:first-child { padding-left: 0; }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: .85rem; color: rgba(242, 243, 239, .62); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section h2 {
  margin: 0 0 18px;
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--indigo);
  max-width: 22ch;
}
.section .intro {
  margin: 0;
  max-width: var(--measure);
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.about-grid p { margin: 0 0 1em; max-width: var(--measure); }
.store-note {
  background: var(--paper);
  border-left: 4px solid var(--thread);
  padding: 22px 24px;
}
.store-note p { margin: 0; }
.store-note a { font-weight: 600; }

/* Products */
.products { background: var(--paper); }
.product {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 2px dashed rgba(138, 143, 156, .5);
}
.product:first-of-type { margin-top: 40px; }
.product figure {
  margin: 0;
  border: 1px solid #d9dbe1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--linen);
}
.product figure img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; height: auto; }
.product h3 {
  margin: 0 0 6px;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: 1.6rem;
  letter-spacing: -.01em;
  color: var(--indigo);
}
.product .what { margin: 0 0 14px; font-weight: 600; }
.product p { margin: 0 0 14px; color: var(--muted); }
.product ul { margin: 0 0 18px; padding-left: 1.1em; color: var(--muted); }
.product li { margin: 2px 0; }
.product .visit { font-weight: 600; color: var(--indigo); text-underline-offset: 4px; }
.attribution { margin: 32px 0 0; font-size: .95rem; color: var(--muted); max-width: var(--measure); }

/* Claude roadmap */
.roadmap table {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  font-size: 1rem;
}
.roadmap th, .roadmap td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px 18px 0;
  border-top: 2px dashed rgba(138, 143, 156, .5);
}
.roadmap thead th {
  border-top: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 10px;
}
.roadmap tbody th {
  font-weight: 700;
  color: var(--indigo);
  width: 22%;
}
.roadmap td:last-child { color: var(--muted); width: 30%; }
.how {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(28px, 5vw, 64px);
}
.how h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-variation-settings: "wdth" 112;
  color: var(--indigo);
}
.how p { margin: 0; color: var(--muted); }

/* Contact */
.contact {
  background: var(--indigo);
  color: var(--linen);
}
.contact h2 { color: var(--linen); }
.contact .intro { color: rgba(242, 243, 239, .8); }
.contact .mail {
  display: inline-block;
  margin: 28px 0 40px;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(1.5rem, 4.4vw, 3rem);
  letter-spacing: -.02em;
  color: var(--thread);
  text-decoration: none;
  word-break: break-word;
}
.contact .mail:hover { text-decoration: underline; text-underline-offset: 8px; }
.legal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding-top: 28px;
  border-top: 2px dashed rgba(138, 143, 156, .55);
}
.legal dt { font-size: .85rem; color: rgba(242, 243, 239, .6); }
.legal dd { margin: 2px 0 0; }

/* Footer */
.site-footer {
  background: var(--indigo-deep);
  color: rgba(242, 243, 239, .7);
  font-size: .9rem;
  padding: 24px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: var(--linen); }
.footer-links { display: flex; gap: 20px; }

/* Plain document pages (privacy) */
.doc { padding: clamp(48px, 8vw, 96px) 0; }
.doc h1 {
  margin: 0 0 8px;
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--indigo);
  letter-spacing: -.02em;
}
.doc h2 { margin: 2em 0 .4em; font-size: 1.25rem; color: var(--indigo); }
.doc p, .doc li { max-width: var(--measure); }
.doc .updated { color: var(--muted); margin: 0 0 2em; }

/* Responsive */
@media (max-width: 860px) {
  .about-grid, .product, .how { grid-template-columns: minmax(0, 1fr); }
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { padding-left: 0; border-right: 0; border-bottom: 2px dashed rgba(138, 143, 156, .45); }
  .facts div:nth-child(odd) { padding-right: 16px; }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .roadmap table, .roadmap thead, .roadmap tbody, .roadmap tr, .roadmap th, .roadmap td { display: block; width: auto !important; }
  .roadmap thead { display: none; }
  .roadmap tr { border-top: 2px dashed rgba(138, 143, 156, .5); padding: 16px 0; }
  .roadmap th, .roadmap td { border-top: 0; padding: 2px 0; }
}
@media (max-width: 560px) {
  .site-nav a:not(.lang) { display: none; }
  .facts dl { grid-template-columns: minmax(0, 1fr); }
  .facts div:nth-child(odd) { padding-right: 0; }
}
