/* Lockside website. Tokens follow the SlothieSmooth design system with the pink / lavender palette. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* --blossom-hover and --ink-raised are hover shades (the design system darkens a colour ~8% on hover), as on the boards.
   --r-md and the 24px selection outline are concentric radii: 10px + 4px padding, 20px + 4px offset. */
:root {
  --blossom: #FFC7C7; --blossom-hover: #FFB3B3; --blush: #FFE2E2; --paper: #F6F6F6; --dusk: #8785A2;
  --ink: #2B2A3A; --ink-raised: #3A394D; --ink-muted: #5F5D7A; --card: #FFFFFF;
  --border: rgba(43, 42, 58, .12); --border-strong: rgba(43, 42, 58, .22); --divider: rgba(43, 42, 58, .08);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 40px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(43, 42, 58, .06), 0 2px 6px rgba(43, 42, 58, .05);
  --shadow-md: 0 3px 6px rgba(43, 42, 58, .08), 0 10px 20px rgba(43, 42, 58, .06);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --focus: 0 0 0 2px var(--dusk), 0 0 0 4px rgba(135, 133, 162, .25);
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 8vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h, 84px) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 16px; line-height: 1.55; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--ink-muted); }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus); border-radius: var(--r-sm); }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 20; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); }
.section-tight { padding-top: clamp(32px, 5vw, 48px); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.center { align-items: center; text-align: center; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.cols-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.narrow { max-width: 760px; }
.mid { max-width: 960px; }
.section-more { margin-top: 24px; }
.title + .cols, .title + .cols-wide { margin-top: 28px; }

/* Type */
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }
.display { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; margin: 10px 0 12px; }
.display-hero { font-size: clamp(56px, 10vw, 128px); line-height: .94; letter-spacing: -0.045em; margin: 0; }
.title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; margin: 10px 0 12px; max-width: 800px; }
.title-sm { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; }
.h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.h3-sm { font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
.lead { font-size: 18px; color: var(--ink-muted); max-width: 640px; text-wrap: pretty; }
.lead:not(:last-child) { margin-bottom: 20px; }
.lead + .cols { margin-top: 28px; }
.lead-hero { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--ink-muted); max-width: 560px; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; }
.fine { font-size: 12px; }
.mark { background: var(--blossom); border-radius: .14em; padding: 0 .12em; }

/* Buttons, inputs, pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-sm); border: 1.5px solid var(--blossom); background: var(--blossom); color: var(--ink);
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 140ms var(--ease), border-color 140ms var(--ease), transform 80ms;
}
.btn:hover { background: var(--blossom-hover); border-color: var(--blossom-hover); color: var(--ink); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
/* aria-disabled keeps the button focusable so its explanation (aria-describedby) is still read; dashed = not available yet. */
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { background: transparent; border-color: var(--ink); border-style: dashed; color: var(--ink); cursor: not-allowed; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn-secondary { background: transparent; border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--card); border-color: var(--ink); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-raised); border-color: var(--ink-raised); color: var(--paper); }
.input {
  min-height: 44px; min-width: 0; padding: 0 14px; border-radius: var(--r-sm); border: 1.5px solid var(--border-strong);
  background: var(--card); color: var(--ink); font: inherit; font-size: 15px;
}
.input:focus { outline: 2px solid transparent; border-color: var(--dusk); box-shadow: var(--focus); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--border); background: var(--card); color: var(--ink-muted);
}
.pill-pro { background: var(--blossom); border-color: var(--blossom); color: var(--ink); }
.pill-dot::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--dusk); }

/* Surfaces */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 24px; }
.block { border-radius: var(--r-2xl); padding: clamp(24px, 5vw, 64px); }
.block-blush { background: var(--blush); }
.block-blossom { background: var(--blossom); }
.block-blossom .lead-hero { color: var(--ink); }
.block-blossom :focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px rgba(43, 42, 58, .25); }
.block-dusk { background: var(--dusk); }
.block-dusk .title, .block-dusk .display { color: #FFFFFF; }
.block-dusk .eyebrow-lg { color: #FFFFFF; font-size: 24px; font-weight: 700; }
.block-dusk .display { max-width: 900px; }
.block-dusk .display:last-child { margin-bottom: 0; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 10; transition: background 220ms var(--ease); }
.site-header.is-scrolled { background: rgba(246, 246, 246, .88); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
@media (scripting: none) {
  .site-header { background: rgba(246, 246, 246, .88); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--blossom); display: inline-flex; align-items: center; justify-content: center; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.nav-link { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.nav-link[aria-current="page"] { font-weight: 700; }
.site-footer { border-top: 1px solid var(--border); margin-top: var(--section); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--ink-muted); }
.footer-links { display: flex; align-items: center; gap: 0 24px; flex-wrap: wrap; }
.footer-icon { width: 44px; min-width: 44px; height: 44px; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-md); }
.footer-icon svg { display: block; }
.footer-icon:hover { background: var(--blush); color: var(--ink); }

/* Waitlist */
.waitlist { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 460px; }
.waitlist .input { flex: 1 1 220px; }
.waitlist-ink .input { border-color: var(--ink); }
.waitlist-note { flex-basis: 100%; font-size: 14px; text-align: center; }
/* Empty, the live region stays in the accessibility tree but takes no room in the layout. */
.waitlist-note:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.waitlist-done { font-size: 18px; font-weight: 600; }
.waitlist-done:focus { box-shadow: none; }
.cta-title { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; max-width: 820px; text-wrap: balance; }

/* Look switcher and stacked looks */
[data-look-switcher] { margin-bottom: 16px; }
.segs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--border); }
.seg { min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background 140ms var(--ease); }
.seg:hover { background: var(--blush); }
.seg[aria-pressed="true"] { background: var(--blossom); }
.shot { position: relative; width: 100%; }
.shot > picture, .shot > img { position: absolute; inset: 0; }
.shot img { width: 100%; height: 100%; }
.shot-sq { aspect-ratio: 1 / 1; }
.shot-md { aspect-ratio: 360 / 170; }
.shot-np { aspect-ratio: 550 / 190; }
.shot-photo { aspect-ratio: 480 / 320; }
.look { opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease), visibility 220ms var(--ease); }
.look-clear { opacity: 1; visibility: visible; }
/* main.js marks a container ready-<look> once that look's image has loaded; until then Clear stays. */
html[data-look="frosted"] .ready-frosted > .look-clear, html[data-look="dark"] .ready-dark > .look-clear { opacity: 0; visibility: hidden; }
html[data-look="frosted"] .ready-frosted > .look-frosted, html[data-look="dark"] .ready-dark > .look-dark { opacity: 1; visibility: visible; }
/* A look kept from an earlier page is the starting state: shown at once, no fade from Clear. */
html.look-restored .look { transition: none; }
html.look-restored[data-look="frosted"] .look-clear, html.look-restored[data-look="dark"] .look-clear { opacity: 0; visibility: hidden; }
html.look-restored[data-look="frosted"] .look-frosted, html.look-restored[data-look="dark"] .look-dark { opacity: 1; visibility: visible; }
.stage { position: relative; aspect-ratio: 1200 / 780; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--ink); }
.stage > picture { position: absolute; inset: 0; }
.stage img { width: 100%; height: 100%; object-fit: cover; }

/* Home hero */
.hero { position: relative; min-height: 860px; padding-top: 210px; }
.hero-copy { position: relative; z-index: 2; }
.guide { position: absolute; pointer-events: none; }
.guide-v { left: 50%; top: -84px; bottom: 0; border-left: 1.5px dashed var(--blossom); }
.guide-h { left: 0; right: 0; top: 396px; border-top: 1.5px dashed var(--blossom); }
.scatter { position: absolute; filter: drop-shadow(0 12px 22px rgba(43, 42, 58, .22)); transition: transform 220ms var(--ease); }
.scatter:hover { transform: rotate(0deg) translateY(-2px) !important; }
.scatter-selected { outline: 2px solid var(--blossom); outline-offset: 4px; border-radius: 24px; }
.cursor { position: absolute; z-index: 2; pointer-events: none; }

/* Bento wall */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 16px; margin-top: 16px; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.tile-art { display: flex; align-items: center; justify-content: center; flex-grow: 1; gap: 16px; }
.tile-art-stretch { align-items: stretch; }
.tile-cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; } .span-8 { grid-column: span 8; }
.rows-2 { grid-row: span 2; }
.tile.tile-strip { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.tile-strip .tile-art { flex: 0 1 360px; min-width: 0; }
.tile-strip .tile-cap { flex: 1; }

/* Widget cards (Widgets page) */
.widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.widget-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: 16px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: stretch; }
.widget-art { display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; }
.widget-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 6px 6px 0; }
.widget-source { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--ink-muted); width: 100%; }

/* Lists, tables, FAQ, prose */
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 3px; color: var(--dusk); }
.plan-pro .ticks svg { color: var(--ink); }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
.plan-pro { background: var(--blush); border-top: 4px solid var(--blossom); }
.price { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 10px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.table-card { position: relative; padding: 0; overflow-x: auto; }   /* contains the visually hidden cell text */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
thead th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); }
tbody th { font-weight: 400; }
tbody tr:last-child > * { border-bottom: 0; }
.col-yn { text-align: center; width: 110px; }
.faq { padding: 0; }
.faq details { border-bottom: 1px solid var(--divider); padding: 0 24px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; min-height: 60px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--blush); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 500; }
.faq details[open] summary::after { content: "–"; background: var(--blossom); }
.faq p { margin: 0 0 20px; color: var(--ink-muted); max-width: 640px; }
.prose { max-width: 720px; }
.prose h2 { margin: 40px 0 10px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.prose p { margin: 0 0 16px; line-height: 1.75; }
.looks-strip { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: clamp(16px, 3vw, 40px); }
.looks-strip figure { flex: 1 1 200px; max-width: 300px; text-align: center; }
.looks-strip figcaption { margin-top: 12px; font-weight: 600; }
.title + .looks-strip { margin-top: 24px; }
.eyebrow + .widget-grid { margin-top: 14px; }
.eyebrow + .faq { margin-top: 12px; }
[data-look-switcher]:has(+ .eyebrow) { margin-bottom: 28px; }
.block > .pill + .title { margin-top: 12px; }
.block + .small { margin-top: 14px; }
.card > .eyebrow + .h3, .card > .h3 + p, .card > .h3-sm + p, .cols-wide > div > .h3 + p { margin-top: 6px; }
.card > p + .tile-art { margin-top: 16px; }
.studio-shot { width: 100%; max-width: 900px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(43, 42, 58, .28)); }
.handle { position: absolute; right: -9px; bottom: -9px; width: 14px; height: 14px; border-radius: var(--r-pill); background: var(--paper); border: 2px solid var(--blossom); }

/* Install guide (open.html). The captures are real macOS windows at 2x; the alerts carry their own shadow,
   the others (.capture-flat) get one that follows their rounded corners. */
.open-title { max-width: 1000px; font-size: clamp(40px, 6vw, 72px); }
.open-safe { color: var(--ink); }
.download { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; gap: 24px clamp(24px, 5vw, 64px); padding: clamp(24px, 4vw, 48px); }
.download-get { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.download-get .title-sm { margin: 0; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.download-note { max-width: 360px; font-size: 15px; line-height: 1.45; }
.download-hash { font-size: 13px; overflow-wrap: anywhere; }
/* The form lines up with the left edge of the block in one column, and of its column in two. */
.download .waitlist { justify-self: start; justify-content: flex-start; }
.download .waitlist-note { text-align: left; }
.steps-note { max-width: 640px; margin: -4px 0 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: clamp(16px, 3vw, 32px); }
.step-text { display: flex; align-items: flex-start; gap: 14px; }
.step-text p { padding-top: 4px; max-width: 560px; font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.step-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--blossom); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.step-last { background: var(--blush); border-color: transparent; }
.step-media { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: clamp(12px, 3vw, 28px); border-radius: var(--r-md); background: var(--paper); }
.capture { min-width: 0; }
.capture-flat img { filter: drop-shadow(0 2px 4px rgba(43, 42, 58, .12)) drop-shadow(0 10px 22px rgba(43, 42, 58, .16)); }
.capture-panel img { border-radius: var(--r-md); }
.help-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  /* The two step 4 boxes stay side by side; flex-shrink works from their natural widths, so both keep one scale. */
  .step-media-pair { flex-wrap: nowrap; }
  .step-media-pair .capture { flex: 0 1 auto; }
}
@media (max-width: 699px) {
  /* Stacked, the two boxes still share one scale: 76.5% is 260 / 340, the Touch ID box's width over the alert's. */
  .step-media-pair .capture:first-child { width: min(340px, 100%); }
  .step-media-pair .capture:last-child { width: min(260px, 76.5%); }
}
@media (min-width: 1100px) {
  .step { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: 32px; }
  .step-text { flex-direction: column; }
  .step-text p { padding-top: 0; }
  .step-last { grid-template-columns: minmax(0, 1fr); }
  .step-last .step-text { flex-direction: row; align-items: center; }
  .help-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  /* On phones the captures take the card's full width, without the plate. */
  .step-media { padding: 0; background: none; }
  .help-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .scatter, .guide, .cursor { display: none; }
  .hero { min-height: 0; padding-top: 48px; padding-bottom: 16px; }
  .bento { grid-auto-flow: row dense; }
  .span-4 { grid-column: span 6; }
  .span-6, .span-8 { grid-column: span 12; }
}
@media (max-width: 700px) {
  :root { --header-h: 144px; }   /* fallback without JavaScript; main.js measures the header */
}
@media (max-width: 560px) {
  :root { --header-h: 116px; }
  /* Two header rows on phones: brand and the waitlist button, then the links. */
  .site-header .wrap { position: relative; row-gap: 4px; padding-top: 12px; padding-bottom: 12px; }
  .site-header .nav { flex-basis: 100%; }
  .site-header .nav .btn { position: absolute; top: 12px; right: var(--gutter); }
  .span-4 { grid-column: span 12; }
  .tile.tile-strip { flex-direction: column; align-items: stretch; }
  .tile-strip .tile-art { flex: 0 1 auto; }
  .tile-strip .shot { max-width: 360px; }
  .widget-card { grid-template-columns: minmax(0, 1fr); }
  .widget-text { padding: 0 6px 6px; }
  .col-yn { width: 72px; } /* leave the feature column room to breathe on phones */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
