/*
 * benome.app — one stylesheet for three pages.
 *
 * The app's own tokens, so the site and the product read as one thing: one
 * accent used sparingly, one neutral ramp, soft corners, Hanken Grotesk.
 * Values are copied from the app's `src/app/globals.css`; change them there
 * first and bring them over.
 */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #2f6bed;
  --accent-press: #2557c9;
  --accent-tint: #e9f0fd;
  --accent-plate: #cfd9ee;

  --ink-900: #1c1c1e;
  --ink-700: #3a3a3e;
  --ink-500: #6a6a70;
  --ink-400: #8e8e93;

  --surface: #ffffff;
  --surface-sunken: #f4f4f6;
  --canvas: #eceef1;
  --line: #e2e2e7;
  --divider: #f2f2f4;

  --radius-field: 14px;
  --radius-card: 18px;
  --radius-pill: 28px;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;

  /* The reading measure of the app's own pages (Backup, About). */
  --measure: calc(68ch + 152px);
  --wide: 1080px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-700);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-press);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: var(--radius-field);
}

/* ---------- Frame ---------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink-900);
  text-decoration: none;
}

.brand svg {
  width: auto;
  height: 26px;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--ink-500);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--surface-sunken);
  color: var(--ink-900);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ink-900);
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--ink-500);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--ink-500);
}

.site-footer a:hover {
  color: var(--ink-900);
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(24px, 3.2vw, 30px);
}

h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--ink-500);
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.button:hover {
  text-decoration: none;
}

.button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-press);
  color: #ffffff;
}

/* Not out yet: it looks like the button it will become, but quieter, and it
   is not a link — nothing to press until there is somewhere to go. */
.button-pending {
  background: var(--surface-sunken);
  color: var(--ink-500);
  cursor: default;
}

.button-quiet {
  color: var(--ink-900);
  border: 1px solid var(--line);
}

.button-quiet:hover {
  background: var(--surface-sunken);
  color: var(--ink-900);
}

.note {
  font-size: 14px;
  color: var(--ink-500);
}

/* ---------- Home ---------- */

.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.hero .mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  /* The icon file is full-bleed and square, for platforms that mask it. */
  border-radius: 18px;
}

.hero h1 {
  max-width: 18ch;
  margin: 0 auto;
}

.hero .lede {
  max-width: 34em;
  margin: 20px auto 0;
}

.hero .actions {
  justify-content: center;
  margin-top: 32px;
}

.hero .note {
  margin-top: 14px;
}

.shot {
  margin: 24px auto 0;
  max-width: 1040px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--canvas);
  overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(30, 30, 40, 0.35);
}

.shot img {
  width: 100%;
  height: auto;
}

.section {
  padding-top: 104px;
}

.section-head {
  max-width: 36em;
}

.section-head .lede {
  margin-top: 12px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.features .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
}

.features .icon svg {
  width: 18px;
  height: 18px;
}

.features p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-500);
}

.private {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 48px;
  border-radius: var(--radius-card);
  background: var(--surface-sunken);
}

.private ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.private li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 15px;
}

.private li svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}

.private strong {
  color: var(--ink-900);
  font-weight: 600;
}

.private .lede {
  margin-top: 12px;
}

.private .more {
  display: inline-block;
  margin-top: 20px;
  font-weight: 500;
}

.closing {
  text-align: center;
}

.closing .lede {
  margin: 12px auto 0;
  max-width: 30em;
}

.closing .actions {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Document pages (Privacy, Support) ---------- */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 72px var(--gutter) 0;
}

.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.doc .meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-500);
}

.doc .lede {
  margin-top: 24px;
}

.doc h2 {
  margin-top: 56px;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin-top: 32px;
}

.doc p,
.doc ul {
  margin-top: 12px;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc strong {
  color: var(--ink-900);
  font-weight: 600;
}

.doc code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-sunken);
  color: var(--ink-900);
  overflow-wrap: anywhere;
}

/* The short version at the top of the policy: what most people came for. */
.summary {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  background: var(--surface-sunken);
}

.summary ul {
  margin: 12px 0 0;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.contact-card p {
  margin: 0;
}

.contact-card .address {
  color: var(--ink-900);
  font-size: 18px;
  font-weight: 600;
}

.faq {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--ink-900);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid var(--ink-500);
  border-bottom: 1.5px solid var(--ink-500);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease-out;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq .answer {
  padding: 0 0 20px;
}

.faq .answer p:first-child {
  margin-top: 0;
}

/* ---------- 404 ---------- */

.lost {
  padding: 120px 0 40px;
  text-align: center;
}

.lost .lede {
  margin-top: 12px;
}

.lost .actions {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Narrow ---------- */

@media (max-width: 860px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .private {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding-top: 72px;
  }

  .site-nav a {
    padding: 6px 8px;
  }

  .doc {
    padding-top: 48px;
  }

  .summary,
  .contact-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
