/* Lanyard website. One motif (the two interlocked loops) at several scales; warm neutrals; one amber accent.
   Tokens match the apps (shared/base.css). Self-hosted type, no external requests. */
@font-face { font-family: "Bricolage Grotesque"; src: url(assets/bricolage.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #15110e; --field: #1f1a16; --field-2: #2a231d; --line: #3a3027;
  --ink: #f5ebdd; --muted: #c9bba8; --accent: #ff9a3c; --accent-ink: #1b1006; --cream: #f6ead8; --bone: #f6ead8; --dark: #1f1a16; --dark-2: #2a231d; --dark-ink: #f5ebdd; --dark-muted: #cbbda9; --brown: #3b2a1a;
  --accent-text: #ff9a3c; --good: #86d9a6; --bad: #ff8a7a; --focus: #ffd29b;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Bricolage Grotesque", ui-rounded, "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  --radius: 18px; --margin: clamp(16px, 4.2vw, 56px);
  --step-small: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --step-head: clamp(2.1rem, 1.3rem + 3.2vw, 4.25rem);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f3f0ea; --field: #faf8f4; --field-2: #e7e2d9; --line: #d6cfc2; --ink: #211a13; --muted: #4f463a;
          --accent: #ff9a3c; --accent-ink: #1b1006; --bone: #e4ded2; --accent-text: #9a4600; --good: #17703f; --bad: #b0352a; --focus: #a04a00; color-scheme: light; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--font); font-optical-sizing: auto; overflow-x: hidden; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; max-width: 62ch; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 12px; font-weight: 700; z-index: 20; }
.skip:focus { top: 12px; }

/* ---- the one button shape: a pill made of the loop's rounded geometry ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent;
       font: 700 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer; background: var(--field-2); color: var(--ink);
       transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { box-shadow: 0 10px 28px -10px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn.line { background: transparent; border-color: var(--line); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }

/* ---- header ---- */
.top { position: absolute; z-index: 10; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--margin); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); font-weight: 600; font-size: 1rem; }
.top nav a { text-decoration: none; padding: 10px 2px; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 620px) { .top nav a:not(.keep) { display: none; } }

/* ---- hero: the loops, enormous and cropped by the viewport ---- */
.hero { position: relative; min-height: min(100svh, 980px); padding: 132px var(--margin) 72px; display: grid; align-content: center; overflow: hidden; isolation: isolate; }
.hero .loops { position: absolute; z-index: -1; right: -7vw; top: 56%; width: min(94vh, 78vw); height: auto; translate: 0 -50%; }
.hero .loops g { transform-origin: 50% 50%; animation: drift 14s var(--ease) infinite alternate; }
@keyframes drift { from { transform: rotate(-2deg) scale(1); } to { transform: rotate(2.5deg) scale(1.025); } }
.hero h1 { font-size: clamp(3rem, 1rem + 6.6vw, 6.6rem); letter-spacing: -.035em; max-width: 6.7em; }
.hero h1 span { color: var(--accent-text); }
.hero .lead { margin-top: 26px; font-size: var(--step-lead); max-width: min(27em, 100%); color: var(--ink); }
@media (min-width: 901px) { .hero .lead, .hero .fine { max-width: min(27em, 48vw); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .fine { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }
.hero .peek { position: absolute; right: var(--margin); bottom: 42px; width: min(330px, 78vw); }
@media (max-width: 900px) { .hero .peek { display: none; } .hero .loops { right: -42vw; top: 62%; width: 138vw; opacity: .42; } .hero { align-content: end; padding-bottom: 56px; } }

/* ---- product fragments (built in HTML, real labels) ---- */
[data-ui] { font-size: 16px; line-height: 1.35; color: var(--ink); }
.ui-card { background: var(--field); border-radius: var(--radius); padding: 18px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55); }
.ui-row { display: flex; align-items: center; gap: 10px; }
.ui-title { font-weight: 700; font-size: 1.125em; letter-spacing: -.01em; }
.ui-sub { color: var(--muted); font-size: .875em; }
.ui-bar { height: 6px; border-radius: 6px; background: var(--field-2); overflow: hidden; margin: 12px 0 8px; }
.ui-bar i { display: block; height: 100%; width: 46%; background: var(--accent); border-radius: 6px; }
.ui-keys { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.ui-key { width: 46px; height: 46px; border-radius: 50%; background: var(--field-2); display: grid; place-items: center; }
.ui-key.main { width: 62px; height: 62px; background: var(--accent); color: var(--accent-ink); }
.ui-key svg { width: 46%; height: 46%; fill: currentColor; }
.ui-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .9375em; }
.ui-pill.quiet { background: var(--field-2); color: inherit; }

/* ---- sections ---- */
section { position: relative; }
.wrap { padding: clamp(72px, 11vw, 150px) var(--margin) 0; }
.section-head { max-width: 15em; font-size: var(--step-head); margin-bottom: clamp(28px, 4vw, 52px); }

/* how it works: four flat fields, side by side */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 110px); }
.field { min-height: min(84svh, 760px); padding: clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.field:nth-child(1) { background: var(--accent); color: var(--accent-ink); }
.field:nth-child(2) { background: var(--bone); color: #1b1006; }
.field:nth-child(3) { background: var(--brown); color: var(--dark-ink); }
.field:nth-child(4) { background: var(--dark-2); color: var(--dark-ink); }
.field h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.08; letter-spacing: -.02em; max-width: 10em; }
.field .copy p { margin-top: 10px; font-size: 1.0625rem; max-width: 18em; }
.field .stage { display: grid; place-items: center; flex: 1; }
.field [data-ui] { width: min(100%, 270px); transition: transform .3s var(--ease); }
.field:hover [data-ui] { transform: translateY(-8px); }
.field .ui-card { background: #fffdf8; color: #211a13; --muted: #5a4f41; --field-2: #ece5d8; }
.field:nth-child(3) .ui-card, .field:nth-child(4) .ui-card { background: var(--dark); color: var(--dark-ink); --muted: var(--dark-muted); --field-2: var(--dark-2); }
.strip-lead { max-width: 28em; font-size: var(--step-lead); margin-top: 18px; }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr; } .field { min-height: 0; } .field .stage { justify-items: start; } }

/* features: a board of close-ups */
.board { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 104px; gap: 8px; padding: 0 var(--margin); margin-top: clamp(28px, 4vw, 52px); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--field); isolation: isolate; }
.tile h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.tile p { font-size: .9375rem; color: inherit; max-width: 28ch; margin-top: 2px; }
.t-remote { grid-area: 1 / 1 / 4 / 7; background: var(--accent); color: var(--accent-ink); }
.t-title { grid-area: 1 / 7 / 3 / 13; background: transparent; padding: 0; justify-content: flex-start; }
.t-title h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem); }
.t-files { grid-area: 3 / 7 / 5 / 13; background: var(--brown); color: var(--dark-ink); }
.t-files .ui-card { background: var(--dark); color: var(--dark-ink); --muted: var(--dark-muted); --field-2: var(--dark-2); }
.t-pad { grid-area: 4 / 1 / 7 / 4; background: var(--bone); color: #1b1006; }
.t-bt { grid-area: 4 / 4 / 7 / 7; background: var(--dark-2); color: var(--dark-ink); }
.t-private { grid-area: 5 / 7 / 7 / 10; background: var(--bone); color: #1b1006; }
.t-account { grid-area: 5 / 10 / 7 / 13; background: var(--accent); color: var(--accent-ink); }
.big { position: absolute; z-index: -1; pointer-events: none; }
.t-remote .big { right: -7%; top: -22%; width: 54%; }
.t-pad .big { left: 50%; top: 5%; height: 58%; width: auto; translate: -50% 0; }
.t-files .big { right: 2%; top: 16%; width: 52%; }
.t-bt .big { right: -4%; top: 4%; width: 46%; height: auto; opacity: .95; }
.t-private .big { right: -8%; top: -14%; width: 58%; height: auto; }
.t-account .big { right: -12%; top: -26%; width: 74%; height: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--field-2); font-weight: 650; font-size: .875rem; }
@media (max-width: 900px) {
  .board { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 28vw; gap: 6px; }
  .t-remote { grid-area: auto; grid-column: span 2; grid-row: span 3; }
  .t-title { grid-area: auto; grid-column: span 2; grid-row: span 2; }
  .t-files { grid-area: auto; grid-column: span 2; grid-row: span 2; }
  .t-pad, .t-bt { grid-area: auto; grid-column: span 1; grid-row: span 3; }
  .t-private, .t-account { grid-area: auto; grid-column: span 1; grid-row: span 2; }
  .t-title { order: 1; } .t-remote { order: 2; } .t-pad { order: 3; } .t-bt { order: 4; } .t-files { order: 5; } .t-private { order: 6; } .t-account { order: 7; }
  .tile { padding: 16px; } .tile h3 { font-size: 1rem; } .tile p { font-size: .875rem; }
  .t-remote .big { width: 62%; top: -18%; } .t-files .big { width: 64%; right: -4%; top: 10%; }
}

/* downloads */
.dl { display: grid; gap: 10px; padding: 0 var(--margin); max-width: 1180px; }
.dl-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px 18px; align-items: center; background: var(--field); border-radius: var(--radius); padding: 16px 20px; }
.dl-row[data-mine] { outline: 3px solid var(--accent); outline-offset: -3px; }
.dl-row .os { width: 56px; height: 56px; border-radius: 50%; background: var(--field-2); display: grid; place-items: center; }
.dl-row .os svg { width: 28px; height: 28px; fill: currentColor; }
.dl-row b { display: block; font-size: 1.1875rem; letter-spacing: -.01em; }
.dl-row .meta { font-size: var(--step-small); color: var(--muted); overflow-wrap: anywhere; }
.dl-row .soon { font-weight: 650; color: var(--muted); padding-right: 6px; }
@media (max-width: 640px) { .dl-row { grid-template-columns: 48px 1fr; } .dl-row .btn, .dl-row .soon { grid-column: 1 / -1; } .dl-row .os { width: 48px; height: 48px; } }
.dl-foot { padding: 14px var(--margin) 0; color: var(--muted); font-size: var(--step-small); }
.notes { padding: 28px var(--margin) 0; max-width: 1180px; }
.notes details { background: var(--field); border-radius: var(--radius); padding: 0 20px; margin-top: 8px; }
.notes summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: "+"; font-weight: 500; font-size: 1.4em; line-height: 1; }
.notes details[open] summary::after { content: "–"; }
.notes details p { color: var(--ink); padding: 0 0 18px; }
code { font-size: .92em; background: var(--field-2); padding: 1px 7px; border-radius: 7px; overflow-wrap: anywhere; }

/* privacy band */
.band { margin-top: clamp(72px, 11vw, 150px); background: var(--field-2); padding: clamp(48px, 7vw, 96px) var(--margin); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.band h2 { font-size: var(--step-head); }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.band li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.band li::before { content: ""; width: 22px; height: 22px; margin-top: 4px; border-radius: 999px; background: var(--accent); }
.band li:nth-child(2)::before { border-radius: 8px; } .band li:nth-child(3)::before { border-radius: 999px 999px 8px 8px; }
.band li b { display: block; font-size: 1.1875rem; }
.band li span { color: var(--ink); }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }

/* FAQ: index cards, one open at a time */
.faq { padding: 0 var(--margin); max-width: 920px; display: grid; }
.faq details { background: var(--field); border-radius: var(--radius); margin-top: -10px; position: relative; padding: 4px 22px; transition: background .2s var(--ease); }
.faq details:first-child { margin-top: 0; }
.faq details:nth-child(3n+2) { background: var(--field-2); }
.faq details:nth-child(3n+3) { background: color-mix(in oklab, var(--accent) 16%, var(--field)); }
.faq details[open] { z-index: 1; margin-top: 4px; margin-bottom: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0 22px; font-weight: 650; font-size: 1.25rem; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 8px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; rotate: 45deg; transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 225deg; margin-top: 14px; }
.faq details p { padding: 0 0 24px; max-width: 54ch; color: var(--ink); }

/* closing call to action */
.close { margin-top: clamp(72px, 11vw, 150px); background: var(--accent); color: var(--accent-ink); padding: clamp(48px, 8vw, 110px) var(--margin); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; min-height: min(80svh, 720px); }
.close h2 { font-size: clamp(3.2rem, 1.4rem + 7.2vw, 7rem); line-height: .93; letter-spacing: -.035em; }
.close p { margin-top: 22px; font-size: var(--step-lead); max-width: 22em; }
.close .btn.primary { background: var(--accent-ink); color: var(--cream); }
.close .btn.line { border-color: rgba(27, 16, 6, .35); }
@media (max-width: 800px) { .close { grid-template-columns: 1fr; min-height: 0; } }

/* footer: the mark, built large */
footer { padding: clamp(40px, 6vw, 80px) var(--margin) 28px; }
.mark-band { display: flex; align-items: flex-end; gap: 4px; height: clamp(150px, 30vw, 360px); }
.mark-band svg { height: 100%; width: auto; flex: none; }
.foot-links { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px clamp(24px, 6vw, 80px); margin-top: 44px; font-size: 1rem; }
.foot-links a { text-decoration: none; padding: 6px 0; } .foot-links a:hover { text-decoration: underline; }
.foot-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: var(--step-small); }
@media (max-width: 700px) { .foot-links { grid-template-columns: repeat(2, auto); } }

/* motion: one entrance, from an already visible default */
.rise { transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js .rise:not(.in) { opacity: 0; translate: 0 22px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .js .rise:not(.in) { opacity: 1; translate: none; } }

/* privacy page */
.doc { max-width: 760px; padding: 120px var(--margin) 40px; margin: 0 auto; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.doc h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.doc ul { padding-left: 1.2em; } .doc li { margin: 8px 0; }
.doc .dim, .dim { color: var(--muted); }
.doc p.dim { margin-bottom: 14px; }

/* real screenshots of the product */
.shots { display: grid; grid-template-columns: 1.55fr 1fr; gap: 8px; padding: 0 var(--margin); margin-top: clamp(28px, 4vw, 52px); }
.shots figure { margin: 0; background: var(--field-2); border-radius: var(--radius); padding: clamp(14px, 2vw, 28px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.shots img { width: 100%; height: auto; border-radius: 12px; }
.shots figcaption { max-width: 34ch; }
.shots figcaption b { display: block; font-size: 1.1875rem; letter-spacing: -.01em; }
.shots .tall { grid-row: span 2; align-items: center; } .shots .tall img { max-width: 300px; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } .shots .tall { grid-row: auto; align-items: stretch; } .shots .tall img { max-width: 260px; margin-inline: auto; } }

/* My devices (devices.html) */
.acct-form { display: grid; gap: 10px; max-width: 460px; margin: 14px 0 20px; }
.acct-form label { font-weight: 700; }
.acct-form input { font: inherit; color: var(--ink); background: var(--field); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 56px; }
.acct-form input:focus-visible { border-color: var(--focus); }
.acct-list { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 12px; }
.acct-dev { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.acct-dev.gone { opacity: .6; }
.acct-actions { display: flex; gap: 8px; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.acct-code { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: .12em; background: var(--field); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 22px; display: inline-block; user-select: all; }
.acct-msg { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--field-2); }
.acct-msg.bad { color: var(--bad); border: 1px solid var(--bad); background: transparent; }
