/* Outfit (OFL) — website typeface. Geometric sans used on exeter.ac.uk; body 17px / 1.5. */
@font-face {
  font-family: Outfit;
  src: url("/assets/fonts/Outfit-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Plus Jakarta Sans (OFL) — wordmark only. Previous website typeface. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

html:has(body.is-web),
body.is-web {
  min-height: 100%;
  background: var(--bg);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:has(body.is-home),
body.is-home {
  overflow-x: clip;
}

body.is-web {
  --font: Outfit, Inter, "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --curve-size: 240px;
  --curve-dip: calc(var(--curve-size) * 242 / 280);
  --web-header-band: 68px;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-synthesis: none;
  font-feature-settings: "kern" 1;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-web:not(.is-options) {
  font-size: 17px;
  line-height: 1.5;
  /* Exeter type colors, mapped: dark teal headings, #333 body, teal-grey muted.
     Links/actions stay Workwise blue so they do not collide with --ok. */
  --text: #e6eceb;
  --heading: #f4fffb;
  --muted: #97a8a5;
}

body.is-web:not(.is-options) h1,
body.is-web:not(.is-options) h2 {
  color: var(--heading);
}

body.is-web.is-options {
  --font: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

body.is-web:not(.is-options) .wordmark {
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI Variable", "Segoe UI", sans-serif;
}

body.is-web:not(.is-options) .wordmark-text {
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI Variable", "Segoe UI", sans-serif;
}

body.is-web.is-options .wr-cf-modal .wordmark-text {
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

.wordmark-text {
  color: var(--brand);
}

.wordmark-text .wordmark-wise {
  color: var(--ok);
}

body.is-web:not(.is-options) .btn-primary {
  font-weight: 600;
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) body.is-web:not(.is-options) {
    --text: #333333;
    --heading: #003b3c;
    --muted: #5c6f6d;
  }
}

html[data-theme="light"] body.is-web:not(.is-options) {
  --text: #333333;
  --heading: #003b3c;
  --muted: #5c6f6d;
}

html[data-theme="dark"] body.is-web:not(.is-options) {
  --text: #e6eceb;
  --heading: #f4fffb;
  --muted: #97a8a5;
}

body.is-web a,
body.is-web button,
body.is-web input,
body.is-web select,
body.is-web textarea {
  font-family: inherit;
}

body.is-web a {
  text-decoration: none;
}

body.is-web:not(.is-options) .settings-curve {
  z-index: -1;
  height: var(--curve-size);
}

.web-shell,
.web-missing {
  position: relative;
  z-index: 1;
}

.web-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.web-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 0;
}

.web-nav .wordmark {
  text-decoration: none;
}

.web-nav-links {
  display: flex;
  gap: 8px;
}

.web-nav-links .btn {
  width: auto;
  padding: 8px 16px;
}

.web-hero {
  max-width: 640px;
  margin: 0 auto 40px;
  padding-top: calc(var(--curve-dip) - var(--web-header-band) + 28px);
  text-align: center;
}

.web-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.web-lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.web-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.web-hero-actions .btn {
  width: auto;
  min-width: 160px;
}

.web-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.web-shell.web-auth {
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 32px));
  min-height: 100vh;
  padding: 28px 0 40px;
}

.web-auth .web-nav {
  justify-content: center;
}

.web-auth .web-card {
  margin-top: max(2rem, calc(var(--curve-dip) - var(--web-header-band) + 28px));
  margin-bottom: auto;
  padding: 32px 28px 24px;
}

.web-card .panel-head {
  margin-bottom: 20px;
}

.web-card .panel-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.web-card .panel-head p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.web-form {
  display: grid;
  gap: 14px;
}

.web-form .btn {
  margin-top: 4px;
}

.web-switch {
  margin: 18px 0 0;
  text-align: center;
}

.web-switch a {
  color: var(--brand);
}

.web-app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.settings.web-app {
  padding-top: 12px;
}

.settings.web-app .vault-page-actions {
  margin-bottom: 16px;
  gap: 10px;
}

.settings.web-app .vault-page-actions-primary .btn {
  min-height: 38px;
}

.settings.web-app .vault-page-more-toggle {
  min-height: 38px;
  padding-inline: 14px;
}

.settings.web-app .vault-kind-toggle {
  min-height: 38px;
  overflow: visible;
}

.settings.web-app .vault-page .vault-search {
  margin: 8px 0 20px;
}

.settings.web-app .vault-page .vault-toolbar {
  gap: 16px;
  margin: 0 0 20px;
}

.settings.web-app .vault-page .rotate-banner {
  margin: 0 0 22px;
}

.web-app-top .wordmark {
  text-decoration: none;
}

.web-app-top .wordmark:hover {
  text-decoration: none;
}

.account-menu {
  position: relative;
  flex: none;
  z-index: 40;
}

.account-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: min(240px, 46vw);
  min-height: 36px;
  padding: 3px 10px 3px 3px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--text));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.account-menu-toggle:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}

.account-menu.is-open .account-menu-toggle,
.account-menu-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 22%, transparent);
  outline: none;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ok), var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

html[data-theme="light"] .account-avatar {
  color: #fff;
}

.account-menu-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-caret {
  flex: none;
  color: var(--muted);
  transition: transform 0.16s ease;
}

.account-menu.is-open .account-menu-caret {
  transform: rotate(180deg);
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 41;
  width: min(268px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.account-menu-panel[hidden],
.account-menu-item[hidden] {
  display: none !important;
}

.account-menu-identity {
  padding: 10px 10px 12px;
}

.account-menu-identity-name {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.account-menu-identity-email {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.account-menu-list {
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-item svg {
  flex: none;
  color: var(--muted);
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.account-menu-danger,
.account-menu-signout {
  margin-top: 6px;
  color: #e8a39c;
}

.account-menu-danger {
  margin-top: 0;
}

.account-menu-danger svg,
.account-menu-signout svg {
  color: currentColor;
}

.account-menu-danger:hover,
.account-menu-danger:focus-visible,
.account-menu-signout:hover,
.account-menu-signout:focus-visible {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}

html[data-theme="light"] .account-menu-danger,
html[data-theme="light"] .account-menu-signout {
  color: #c2473d;
}

html[data-theme="light"] .account-menu-panel {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .account-menu-danger,
  html:not([data-theme="dark"]) .account-menu-signout {
    color: #c2473d;
  }

  html:not([data-theme="dark"]) .account-menu-panel {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  }
}

.web-missing {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  padding: calc(var(--curve-dip) + 24px) max(24px, env(safe-area-inset-left)) max(48px, env(safe-area-inset-bottom));
  overflow-wrap: break-word;
}

.web-shell .settings-legal {
  margin-top: 48px;
}

@media (max-width: 860px) {
  .web-grid { grid-template-columns: 1fr; }
  .web-nav { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .web-app-top {
    gap: 12px;
  }

  .settings.web-app {
    width: min(680px, calc(100% - 24px));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: max(48px, env(safe-area-inset-bottom));
  }

  .settings.web-app .vault-page-actions-primary .btn,
  .settings.web-app .vault-page-more-toggle {
    min-height: 44px;
  }

  .settings.web-app .vault-page .vault-toolbar {
    gap: 8px;
    margin-bottom: 16px;
  }

  .settings.web-app .vault-kind-toggle {
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .web-app .wordmark span {
    display: none;
  }

  .account-menu-name {
    display: none;
  }

  .account-menu-toggle {
    padding-right: 8px;
  }
}

@media (max-height: 740px) {
  body.is-web:not(.is-options) {
    --curve-size: 180px;
  }

  .web-hero {
    padding-top: 72px;
  }
}

@media (max-width: 480px) {
  body.is-web:not(.is-options) {
    --curve-size: 168px;
  }
}

@media (max-height: 560px) {
  body.is-web:not(.is-options) {
    --curve-size: 128px;
  }
}

body.is-legal {
  --site-col: min(760px, calc(100% - 40px));
}

body.is-legal .settings-curve {
  z-index: 0;
  height: var(--curve-size);
}

.legal-page {
  position: relative;
  z-index: 1;
  width: var(--site-col);
  margin: 0 auto;
  padding: 12px 0 64px;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.legal-top .wordmark {
  gap: 10px;
  text-decoration: none;
}

.legal-top .wordmark .shield-mark {
  width: 36px;
  height: 40px;
}

.legal-top .wordmark span {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-switch {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: var(--track, var(--surface-2));
  box-shadow: inset 0 0 0 1px var(--track-line, var(--line)), var(--shadow);
}

.legal-switch a {
  position: relative;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
}

.legal-doc .btn-primary {
  margin: 8px 0 4px;
  display: inline-flex;
  text-decoration: none;
}

.legal-switch a:hover {
  color: var(--text);
}

.legal-switch a.is-active {
  color: var(--on-accent);
  background-color: var(--accent);
  background-image: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.legal-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 36px 40px;
}

.legal-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-doc h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-updated {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--muted);
}

.legal-doc h2 {
  margin: 28px 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal-doc p,
.legal-doc li {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}

.legal-doc p.legal-updated {
  color: var(--muted);
}

.legal-doc p {
  margin: 0 0 12px;
}

.legal-doc ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.legal-doc li {
  margin: 0 0 6px;
}

.legal-doc code {
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--surface-2);
}

.legal-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.legal-agree input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--accent);
}

.legal-agree a,
.legal-doc a,
.legal-links a,
.legal-footer a,
.web-missing a {
  color: var(--brand);
  font-weight: 400;
  text-decoration: none;
}

.legal-agree a:hover,
.legal-doc a:hover,
.legal-links a:hover,
.legal-footer a:hover,
.web-missing a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.legal-agree a:focus-visible,
.legal-doc a:focus-visible,
.legal-links a:focus-visible,
.legal-footer a:focus-visible,
.web-missing a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 8px 0 0;
}

.legal-switch a.is-cta {
  background-color: var(--accent);
  background-image: var(--accent-grad);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.legal-switch a.is-cta:hover {
  color: var(--on-accent);
  background-color: var(--accent);
  background-image: var(--accent-grad);
  filter: brightness(1.05);
}

.legal-switch:not(.has-switch-thumb):has(a:hover) a.is-active:not(:hover),
.legal-switch:not(.has-switch-thumb):has(a:hover) a.is-cta:not(:hover),
.legal-switch:not(.has-switch-thumb):has(a:focus-visible) a.is-active:not(:focus-visible),
.legal-switch:not(.has-switch-thumb):has(a:focus-visible) a.is-cta:not(:focus-visible) {
  color: var(--muted);
  background: transparent;
  background-image: none;
  box-shadow: none;
  filter: none;
}

.legal-switch:not(.has-switch-thumb) a:hover,
.legal-switch:not(.has-switch-thumb) a:focus-visible {
  color: var(--on-accent);
  background-color: var(--accent);
  background-image: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  filter: none;
}

.legal-switch.has-switch-thumb a.is-active,
.legal-switch.has-switch-thumb a.is-cta,
.legal-switch.has-switch-thumb a.is-active:hover,
.legal-switch.has-switch-thumb a.is-cta:hover,
.legal-switch.has-switch-thumb a:hover,
.legal-switch.has-switch-thumb a:focus-visible {
  background: transparent;
  background-image: none;
  box-shadow: none;
  filter: none;
}

.legal-switch.has-switch-thumb a.is-active,
.legal-switch.has-switch-thumb a.is-cta,
.legal-switch.has-switch-thumb a:hover,
.legal-switch.has-switch-thumb a:focus-visible {
  color: var(--on-accent);
}

.legal-switch.has-switch-thumb:has(a:hover) a.is-active:not(:hover),
.legal-switch.has-switch-thumb:has(a:hover) a.is-cta:not(:hover),
.legal-switch.has-switch-thumb:has(a:focus-visible) a.is-active:not(:focus-visible),
.legal-switch.has-switch-thumb:has(a:focus-visible) a.is-cta:not(:focus-visible) {
  color: var(--muted);
}

body.is-web .legal-footer-dot {
  display: none;
  color: var(--muted);
}

body.is-web .legal-footer p,
body.is-web .legal-footer a {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 640px) {
  body.is-web .legal-footer.settings-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  body.is-web .legal-footer .legal-links {
    margin: 0;
    justify-content: center;
  }
}

@media (min-width: 641px) {
  body.is-web .legal-footer.settings-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    text-align: left;
  }

  body.is-web .legal-footer p {
    margin: 0;
  }

  body.is-web .legal-footer .legal-links {
    margin: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  body.is-web .legal-footer-dot {
    display: none;
  }
}

body.is-home {
  font-size: 17px;
  --home-fan-h: 548px;
  --home-fan-scale: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.is-home a,
body.is-home button,
body.is-home input,
body.is-home select,
body.is-home textarea {
  font-family: inherit;
}

.home-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: min(1040px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  padding: clamp(24px, 5.2dvh, 64px) 0 clamp(28px, 6dvh, 72px);
}

.home-nav,
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  background: transparent;
  border-bottom: 1px solid transparent;
}

.home-nav.is-scrolled,
.site-nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, var(--surface));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--site-col, min(760px, calc(100% - 40px)));
  max-width: 100%;
  min-height: 64px;
  margin: 0 auto;
  padding: 14px 0;
}

body.is-options .site-nav-inner {
  width: min(680px, calc(100% - 40px));
}

.site-nav .legal-top,
.site-nav .settings-top {
  margin-bottom: 0;
}

.home-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1040px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  padding: 14px 0;
}

.home-nav .wordmark {
  gap: 10px;
  text-decoration: none;
}

.home-nav .wordmark .shield-mark {
  width: 36px;
  height: 40px;
}

.home-nav .wordmark span {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-nav .legal-switch a {
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: inherit;
}

.home-hero {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: center;
  max-width: 980px;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.home-fan {
  position: relative;
  flex: none;
  width: min(860px, 100%);
  height: calc(var(--home-fan-h) * var(--home-fan-scale));
  margin: 0 auto;
}

.home-fan-glow {
  position: absolute;
  left: 50%;
  bottom: -14px;
  z-index: 0;
  width: min(520px, 86%);
  height: 84px;
  transform: translateX(-50%);
  background: radial-gradient(
    55% 90% at 50% 70%,
    color-mix(in srgb, var(--accent) 70%, transparent) 0%,
    color-mix(in srgb, var(--ok) 26%, transparent) 40%,
    transparent 70%
  );
  filter: blur(10px);
  pointer-events: none;
}

.home-fan-stage {
  position: relative;
  z-index: 1;
  height: var(--home-fan-h);
  transform: scale(var(--home-fan-scale));
  transform-origin: top center;
}

.home-preview {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 328px;
  margin-left: -164px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 12px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
  filter:
    drop-shadow(0 20px 26px color-mix(in srgb, #0b1020 40%, transparent))
    drop-shadow(0 36px 28px color-mix(in srgb, var(--accent) 24%, transparent));
  text-align: left;
}

.home-preview-photo {
  position: relative;
  height: 112px;
  flex: none;
  overflow: hidden;
  background: var(--surface-2);
}

.home-preview-photo picture,
.home-preview-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-preview-photo img {
  object-fit: cover;
}

.home-preview-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 28%,
    color-mix(in srgb, var(--surface) 55%, transparent) 72%,
    var(--surface) 100%
  );
  pointer-events: none;
}

.home-preview-body {
  display: grid;
  gap: 8px;
  padding: 0 14px 0;
  margin-top: -16px;
  position: relative;
  z-index: 1;
}

.home-preview.is-left {
  transform: translate(-40%, 7%) rotate(-34deg);
  z-index: 1;
}

.home-preview.is-center {
  transform: translate(0, 0) rotate(0deg);
  z-index: 3;
  filter:
    drop-shadow(0 24px 30px color-mix(in srgb, #0b1020 46%, transparent))
    drop-shadow(0 42px 34px color-mix(in srgb, var(--accent) 32%, transparent));
}

.home-preview.is-right {
  transform: translate(40%, 7%) rotate(34deg);
  z-index: 2;
}

.home-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 2px 4px;
  color: var(--text);
}

.home-preview-vault {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-preview-count {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.home-preview-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.home-preview-search svg {
  flex: none;
}

.home-preview-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.home-preview-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.home-preview-avatar.is-notion { background: #191919; color: #f5f5f5; }
.home-preview-avatar.is-slack { background: #4a154b; color: #ffffff; }
.home-preview-avatar.is-aws { background: #ff9900; color: #161616; }
.home-preview-avatar.is-github { background: #24292f; color: #ffffff; }
.home-preview-avatar.is-proton { background: #6d4aff; color: #ffffff; }
.home-preview-avatar.is-bank { background: #0f766e; color: #ffffff; }
.home-preview-avatar.is-openai { background: #10a37f; color: #ffffff; }
.home-preview-avatar.is-linear { background: #5e6ad2; color: #ffffff; }
.home-preview-avatar.is-claude { background: #d97706; color: #ffffff; }

.home-preview-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}

.home-preview-copy strong {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-preview-copy span {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-preview-copy .home-preview-meta {
  font-size: 10px;
  letter-spacing: 0.01em;
}

.home-preview-end {
  display: grid;
  place-items: center;
  flex: none;
}

.home-preview-pill {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-preview-star {
  color: #e8c07d;
}

.home-preview-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.home-preview-foot svg {
  color: var(--ok);
}

.home-preview-dot {
  opacity: 0.6;
}

.home-photo-credits {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-hero h1 {
  margin: 4px auto 8px;
  max-width: 11em;
  font-weight: 300;
  font-size: clamp(32px, 5.4vw, 68px);
  font-size: clamp(32px, min(5.4vw, 6.6dvh), 68px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--heading);
}

.home-lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: clamp(15px, 2.1dvh, 18px);
  font-weight: 400;
  letter-spacing: -0.014em;
  line-height: 1.4;
  color: var(--muted);
}

.home-toggle {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  margin: clamp(10px, 2dvh, 18px) auto 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--track, var(--surface-2));
  box-shadow: inset 0 0 0 1px var(--track-line, var(--line)), var(--shadow);
  vertical-align: top;
}

.home-toggle a {
  position: relative;
  z-index: 1;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: inherit;
  line-height: 1.2;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.home-toggle a:hover {
  color: var(--text);
}

.home-toggle a.is-active {
  color: var(--on-accent);
  background-color: var(--accent);
  background-image: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.home-toggle a.is-active:hover {
  color: var(--on-accent);
  background-color: var(--accent);
  background-image: var(--accent-grad);
  filter: brightness(1.05);
}

.home-toggle:not(.has-switch-thumb):has(a:hover) a.is-active:not(:hover),
.home-toggle:not(.has-switch-thumb):has(a:focus-visible) a.is-active:not(:focus-visible) {
  color: var(--muted);
  background: transparent;
  background-image: none;
  box-shadow: none;
  filter: none;
}

.home-toggle:not(.has-switch-thumb) a:hover,
.home-toggle:not(.has-switch-thumb) a:focus-visible {
  color: var(--on-accent);
  background-color: var(--accent);
  background-image: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  filter: none;
}

.home-toggle.has-switch-thumb a.is-active,
.home-toggle.has-switch-thumb a.is-active:hover,
.home-toggle.has-switch-thumb a:hover,
.home-toggle.has-switch-thumb a:focus-visible {
  background: transparent;
  background-image: none;
  box-shadow: none;
  filter: none;
}

.home-toggle.has-switch-thumb a.is-active,
.home-toggle.has-switch-thumb a:hover,
.home-toggle.has-switch-thumb a:focus-visible {
  color: var(--on-accent);
}

.home-toggle.has-switch-thumb:has(a:hover) a.is-active:not(:hover),
.home-toggle.has-switch-thumb:has(a:focus-visible) a.is-active:not(:focus-visible) {
  color: var(--muted);
}

.home-page .legal-footer {
  flex: none;
  margin: clamp(24px, 4dvh, 48px) 0 0;
  padding: 16px 0 0;
}

@media (min-width: 641px) {
  body.is-home {
    --home-fan-scale: clamp(0.74, (100dvh - 360px) / 548px, 1);
  }
}

@media (min-width: 641px) and (max-height: 860px) {
  .home-nav-inner,
  .site-nav-inner {
    min-height: 48px;
    padding: 4px 0;
  }

  .home-toggle a {
    padding: 9px 16px;
  }
}

@media (max-width: 720px) {
  .home-toggle a {
    padding: 10px 14px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  body.is-home {
    --home-fan-h: 420px;
    --home-fan-scale: 1;
  }

  .home-page {
    width: min(1040px, calc(100% - 24px));
    padding: 28px 0 48px;
  }

  .home-nav-inner {
    width: min(1040px, calc(100% - 24px));
    min-height: 48px;
    gap: 10px;
    padding: 12px 0;
  }

  .home-nav .wordmark {
    gap: 8px;
  }

  .home-nav .wordmark .shield-mark {
    width: 28px;
    height: 32px;
  }

  .home-nav .wordmark span {
    font-size: 19px;
  }

  .home-nav .legal-switch a {
    padding: 7px 10px;
    font-size: 13px;
  }

  .home-switch .home-switch-meta {
    display: none;
  }

  .home-nav .home-switch {
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .home-hero {
    justify-content: flex-start;
    padding-top: 18px;
  }

  .home-fan {
    width: 100%;
  }

  .home-fan-stage {
    transform: none;
  }

  .home-preview {
    width: 248px;
    margin-left: -124px;
    top: 8px;
    padding: 0 0 10px;
  }

  .home-preview-photo {
    height: 72px;
  }

  .home-preview-body {
    gap: 6px;
    padding: 0 12px 0;
    margin-top: -12px;
  }

  .home-preview.is-left {
    transform: translate(-30%, 10%) rotate(-22deg);
  }

  .home-preview.is-right {
    transform: translate(30%, 10%) rotate(22deg);
  }

  .home-fan-glow {
    height: 64px;
    bottom: 4px;
  }

  .home-preview-search,
  .home-preview-foot {
    display: none;
  }

  .home-preview-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 8px;
  }

  .home-preview-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 8px;
  }

  .home-hero h1 {
    max-width: none;
    font-size: clamp(30px, 9.2vw, 42px);
  }

  .home-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  body.is-legal {
    --site-col: min(680px, calc(100% - 24px));
  }

  .legal-page {
    padding-top: 8px;
  }

  .site-nav-inner,
  body.is-options .site-nav-inner {
    width: var(--site-col, min(680px, calc(100% - 24px)));
    min-height: 48px;
    gap: 10px;
    padding: 12px 0;
  }

  .legal-doc {
    padding: 24px 20px 32px;
    border-radius: 14px;
  }

  .legal-top {
    flex-wrap: wrap;
  }

  .legal-top .wordmark {
    gap: 8px;
  }

  .legal-top .wordmark .shield-mark {
    width: 28px;
    height: 32px;
  }

  .legal-top .wordmark span {
    font-size: 19px;
  }
}

.share-card .share-status {
  color: var(--muted);
}

.share-kind {
  margin: 8px 0 16px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.share-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.share-secret-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.share-secret {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.share-key-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0 0;
}
