/* ==========================================================================
   JassPartner — landing page
   Ported from the Claude Design prototype (project/JassPartner.html).
   Locked to the configuration the design was saved in:
   theme "felt" + accent "saffron" + headline "v1".
   ========================================================================== */

:root {
  /* felt */
  --bg: #0c1f16;
  --bg-2: #0a1a12;
  --panel: #0f2619;
  --fg: #eee7d7;
  --fg-soft: #b9b3a3;
  /* nudged from the prototype's #7a7566, which fell to 3.7:1 on --bg;
     this clears WCAG AA (4.6:1) for the 11–13px mono labels it is used on. */
  --fg-mute: #8a8474;
  --line: rgba(238, 231, 215, 0.10);
  --line-2: rgba(238, 231, 215, 0.06);

  /* saffron */
  --accent: #d9a441;
  --accent-soft: #f0cd85;
  /* readable ink for text sitting *on* the accent fill */
  --on-accent: #2a1d08;

  --card: #161a14;

  /* brass, from the app icon */
  --brass-hi: #e2b25a;
  --brass-mid: #c99c4f;
  --brass-lo: #8a6a2e;
  --brass-ink: #2a1d08;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

/* subtle felt texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.035), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(0,0,0,0.35), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* keyboard affordances */
.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* nav */
header nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 48px 0 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
  color: inherit; text-decoration: none;
}
/* Brand wordmark — the app's own "Jasspartner" lockup (cream, DM Serif italic),
   cropped from the app splash asset so it matches the app exactly. */
.brand-logo {
  height: 39px; width: auto;
  flex-shrink: 0; display: block;
}
/* Support link + language switcher, grouped so they read as one nav cluster. */
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-support {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--fg-mute); text-decoration: none; transition: color 0.15s;
}
.nav-support:hover { color: var(--fg); }
.nav-sep { width: 1px; height: 12px; background: var(--fg-mute); opacity: 0.4; }

/* Language switcher (top right). Stays visible on mobile, unlike .nav-links. */
.nav-langs { display: flex; gap: 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; }
.nav-langs a { color: var(--fg-mute); text-decoration: none; transition: color 0.15s; }
.nav-langs a:hover { color: var(--fg); }
.nav-langs a[aria-current="true"] { color: var(--accent); }
.brand-mark {
  width: 32px; height: 32px;
  /* iOS continuous-corner approximation — 22.37% of the icon side */
  border-radius: 22.37%;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--brass-hi) 0%, var(--brass-mid) 30%, var(--brass-lo) 100%);
  display: grid; place-items: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px; font-style: italic; font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brass-ink);
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,220,150,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.15);
}
/* thin inner rule, curve synced to the outer corner */
.brand-mark::before {
  content: '';
  position: absolute; inset: 6%;
  border: 1px solid rgba(44,29,8,0.4);
  border-radius: 17.5%;
  pointer-events: none;
}
.brand-mark span { position: relative; z-index: 1; line-height: 1; }

.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--fg-soft);
}
.nav-links a { color: inherit; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0 120px;
  min-height: 90vh;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 36px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.2);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 20%, transparent);
  flex-shrink: 0;
}
h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 6.8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--accent-soft);
}
.sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 520px;
  margin: 0 0 44px;
  text-wrap: pretty;
}

/* CTA stores */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 18px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--fg);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.45); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .store-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.store-btn .store-pre { font-size: 10.5px; opacity: 0.65; margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.store-btn .store-main { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
/* Stores not live yet: visually present but inert (no href, not clickable). */
.store-btn.disabled { opacity: 0.5; pointer-events: none; cursor: default; }

/* trust row */
.trust {
  display: flex; align-items: center; gap: 28px;
  margin-top: 40px;
  font-size: 13px; color: var(--fg-mute);
  font-family: 'JetBrains Mono', monospace;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; }

/* Swiss flag, drawn to the federal construction: on a 32-unit square the cross
   arms are 6 wide and 20 long, so each arm is one sixth longer than it is wide.
   Inline SVG rather than an emoji — 🇨🇭 renders as the letters "CH" on Windows
   and on Chrome for Linux, which is most of the desktop traffic. */
.swiss-flag { width: 14px; height: 14px; flex-shrink: 0; display: block; }
.star { color: var(--accent-soft); }

/* phone */
.phone-col { position: relative; display: flex; justify-content: center; align-items: center; }
.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 19.5;
  border-radius: 50px;
  background: #090909;
  padding: 10px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.04),
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 20px 40px -10px rgba(0,0,0,0.5);
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* floating card accents behind phone */
.floater {
  position: absolute;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: rgba(238, 231, 215, 0.35);
  color: color-mix(in oklch, var(--fg) 35%, transparent);
  pointer-events: none;
  user-select: none;
}
.floater.f1 { top: 8%; left: -4%; font-size: 120px; transform: rotate(-12deg); }
.floater.f2 { bottom: 6%; right: -6%; font-size: 96px; transform: rotate(10deg); }
.floater.f3 {
  top: 48%; right: -8%; font-size: 72px; transform: rotate(22deg);
  color: rgba(217, 164, 65, 0.45);
  color: color-mix(in oklch, var(--accent) 45%, transparent);
}

/* claim strip */
.claim-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
}
.marquee {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--fg-soft);
  animation: scroll 40s linear infinite;
}
/* Two identical halves and no gap between them, so translateX(-50%)
   lands exactly on the seam and the loop is invisible. */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* differentiation section */
.diff { padding: 140px 0 120px; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.15em;
  margin: 0 0 16px;
}
.section-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--accent-soft); }
.section-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 500px;
  margin: 0;
  text-wrap: pretty;
}

/* comparison */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.comp-col {
  background: var(--panel);
  padding: 40px 36px;
}
.comp-col.ours {
  background: #16291a;
  background: color-mix(in oklch, var(--accent) 8%, var(--panel));
}
.comp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 28px;
  display: flex; align-items: center; gap: 10px;
}
.comp-col.ours .comp-label { color: var(--accent-soft); }
.comp-label::before {
  content: ''; width: 24px; height: 1px; background: currentColor; flex-shrink: 0;
}
.comp-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.comp-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--fg-soft);
}
.comp-col.ours .comp-list li { color: var(--fg); }
.comp-list .mark {
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 2px;
  font-family: 'Instrument Serif', serif;
  display: grid; place-items: center;
  font-size: 16px;
}
.mark.x { color: var(--fg-mute); }
.mark.check { color: var(--accent); font-weight: 600; }

/* features */
.features {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 60px;
}
.feat {
  background: var(--panel);
  padding: 40px 32px 48px;
  min-height: 260px;
  display: flex; flex-direction: column;
  position: relative;
}
.feat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.12em;
  margin: 0 0 32px;
}
.feat-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.feat-title em { font-style: italic; color: var(--accent-soft); }
.feat-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-soft);
  margin: 0;
  text-wrap: pretty;
}
.feat-meta {
  margin: auto 0 0;
  padding-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* variants row */
.variants {
  padding: 100px 0 120px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.variants .section-title { max-width: 700px; margin: 0 auto; }
.variants-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 50px 0 0;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.variant-chip {
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--fg);
  background: var(--panel);
}
.variant-chip.coming {
  color: var(--fg-mute);
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; align-items: center;
}
.variant-chip.primary {
  background: var(--accent);
  /* the prototype used white here, which is ~2:1 on saffron;
     dark ink keeps the same fill and reads at ~8:1 */
  color: var(--on-accent);
  border-color: var(--accent);
}

/* final CTA */
.final {
  padding: 140px 0 120px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.final .section-num { margin-bottom: 20px; }
.final h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.final h2 em { font-style: italic; color: var(--accent-soft); }
.final .sub { margin: 0 auto 48px; }
.final .stores { justify-content: center; }

footer {
  padding: 50px 0 40px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.05em;
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--fg); }
.foot-links { display: flex; gap: 28px; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 60px; padding: 60px 0 80px; min-height: auto; }
  .section-head { grid-template-columns: 1fr; gap: 30px; }
  .feat-grid { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .wrap { padding: 0 24px; }
  .nav-links { display: none; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .floater.f1 { font-size: 80px; }
  .floater.f2 { font-size: 60px; }
  .floater.f3 { display: none; }
  .diff { padding: 90px 0 80px; }
  .features { padding: 80px 0; }
  .variants { padding: 70px 0 80px; }
  .final { padding: 90px 0 80px; }
}

@media (max-width: 560px) {
  /* The wordmark is wide; at this width it starts touching the nav cluster.
     Shrink the logo and tighten the cluster rather than dropping the Support
     link — it is the store-facing URL and has to stay reachable from the top. */
  header nav { padding-top: 32px; gap: 12px; }
  .brand-logo { height: 30px; }
  .nav-right { gap: 10px; }
  .nav-support { font-size: 11px; letter-spacing: 0.05em; }
  .nav-langs { gap: 10px; font-size: 11px; letter-spacing: 0.05em; }

  .phone { width: min(100%, 300px); }
  .comp-col { padding: 32px 24px; }
  .feat { padding: 32px 24px 40px; min-height: 0; }
  .marquee { font-size: 22px; }
  .stores { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
  .final .stores { align-items: stretch; }
  .trust { gap: 16px 24px; }
  .foot-links { flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
}

/* motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  .store-btn { transition: none; }
  .store-btn:hover { transform: none; }
}

/* print */
@media print {
  body::before, .floater, .claim-strip { display: none; }
  body { background: #fff; color: #000; }
}
