/* Hushtrove website. No web fonts, no scripts, no third-party requests. */

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  --black: #000;
  --graphite: #1c1c1e;
  --steel: #3a3a3c;
  --muted: #8e8e93;
  --silver: #c7c7cc;
  --bright: #f2f2f7;

  /* The brushed-metal gradient from the app icon. */
  --metal: linear-gradient(180deg, #fff 0%, #e7eaee 22%, #b4b9c0 52%, #eef0f3 74%, #9aa0a8 100%);

  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --gutter: 24px;
  --measure: 38rem;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font: 400 1.125rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--bright); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #fff; }

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 999px;
  background: var(--bright); color: var(--black); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }

h1, h2, h3 { margin: 0; color: var(--bright); font-family: var(--display); }

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); line-height: 1.02; }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.06; }
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; }
.lead { font-size: 1.3125rem; line-height: 1.5; color: var(--silver); max-width: var(--measure); }

/* Navigation */

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--bright); text-decoration: none;
  font: 600 1.1875rem/1 var(--display); letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.nav ul a { color: var(--silver); text-decoration: none; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--bright); }

/* Hero: the icon's frosted pane, at the size of the screen. */

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  isolation: isolate;
}
.hero .nav { position: relative; z-index: 2; }

.scene { position: absolute; inset: 0; z-index: -1; }
.scene svg { width: 100%; height: 100%; }

.pane {
  align-self: center;
  justify-self: end;
  width: min(60%, 760px);
  margin-right: max(var(--gutter), calc((100vw - 1180px) / 2));
  margin-block: 24px 72px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.03) 60%),
    rgb(14 14 16 / 0.42);
  -webkit-backdrop-filter: blur(36px) saturate(120%);
  backdrop-filter: blur(36px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    0 50px 100px rgb(0 0 0 / 0.55);
}
.pane h1 { max-width: 11ch; }
.pane .lead { margin-top: 24px; max-width: 30rem; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }

.pill {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--metal);
  color: var(--black);
  font: 600 1.0625rem/1 var(--text);
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px rgb(0 0 0 / 0.45);
}
.quiet-link { color: var(--bright); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .scene svg { animation: settle 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .pane { animation: slide-in 1.5s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .pane > * { animation: appear 0.9s 1.1s ease-out both; }
}
@keyframes settle { from { transform: scale(1.06); } }
@keyframes slide-in { from { transform: translateX(28%); opacity: 0; } }
@keyframes appear { from { opacity: 0; } }

/* Sections */

main > section { padding-block: clamp(96px, 13vw, 168px); }
main > section + section { border-top: 1px solid rgb(255 255 255 / 0.06); }

.section-head { max-width: 46rem; }
.section-head .lead { margin-top: 22px; }

/* The promise, next to the lock screen */

.promise { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(48px, 8vw, 120px); align-items: center; }
.promise dl { margin: 56px 0 0; display: grid; gap: 30px; max-width: var(--measure); }
.promise dt { color: var(--bright); font: 600 1.1875rem/1.3 var(--display); }
.promise dd { margin: 6px 0 0; }

.phone {
  width: 300px;
  padding: 11px;
  border-radius: 56px;
  background: linear-gradient(160deg, #4a4b50, #141416 40%, #2b2c30 75%, #0c0c0d);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.18),
    0 0 0 1px #000,
    0 60px 120px rgb(0 0 0 / 0.7),
    0 0 140px rgb(199 199 204 / 0.08);
}
.phone img { width: 100%; border-radius: 45px; }

/* Free features */

.features {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px clamp(40px, 6vw, 96px);
  margin: 72px 0 0; padding: 0; list-style: none;
}
.features p { margin-top: 8px; max-width: 32rem; }

/* How it's protected: a real sequence, so it's numbered */

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 40px 64px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--metal);
  color: var(--black);
  font: 700 1rem/1 var(--display);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute; left: 19.5px; top: 44px; bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--steel), rgb(58 58 60 / 0.2));
}
.steps p { margin-top: 6px; }

.recovery { display: flex; gap: 32px; align-items: center; margin-top: 56px; }
.recovery .phone { width: 190px; padding: 7px; border-radius: 36px; flex: none; }
.recovery .phone img { border-radius: 29px; }
.recovery p { margin-top: 8px; }
.recovery p + p { margin-top: 12px; }

/* Pro: the one place the glass pane comes back */

.pro-panel {
  margin-top: 64px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 44px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(255 255 255 / 0.10), transparent 55%),
    var(--graphite);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.pro-panel .features { margin-top: 0; }

/* Honest limits */

.limits { margin: 56px 0 0; padding: 0; list-style: none; display: grid; gap: 28px; max-width: 46rem; }
.limits strong { color: var(--bright); font-weight: 600; }

/* FAQ */

.faq { margin-top: 56px; max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--steel); }
.faq details:first-child { border-top: 1px solid var(--steel); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  cursor: pointer; list-style: none;
  color: var(--bright); font: 600 1.1875rem/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--silver); border-bottom: 2px solid var(--silver);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 0 26px; max-width: 44rem; }
.faq details::details-content {
  height: 0; overflow: clip;
  transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
}
.faq details[open]::details-content { height: auto; }

/* Closing */

.closing { text-align: center; }
.closing img { width: 120px; height: 120px; margin: 0 auto 36px; border-radius: 27px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.8), 0 0 120px rgb(199 199 204 / 0.12); }
.closing h2 { margin-inline: auto; max-width: 16ch; }
.closing .lead { margin: 22px auto 0; }
.closing .actions { justify-content: center; }

/* Footer */

.footer { border-top: 1px solid rgb(255 255 255 / 0.08); padding-block: 48px 64px; font-size: 0.9375rem; color: var(--muted); }
.footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: start; }
.footer ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; justify-self: end; }
.footer ul a { color: var(--silver); text-decoration: none; }
.footer ul a:hover { color: var(--bright); }
.footer .fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }

/* Documents: privacy policy, support */

.doc-header { border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.doc { padding-block: clamp(56px, 8vw, 96px) clamp(96px, 12vw, 140px); }
.doc article { max-width: 42rem; }
.doc h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.doc .updated { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }
.doc .lead { margin-top: 28px; }
.doc h2 { margin-top: 64px; font-size: 1.75rem; line-height: 1.2; }
.doc h3 { margin-top: 36px; }
.doc p, .doc ul, .doc ol { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--bright); font-weight: 600; }
.doc .contact {
  margin-top: 64px; padding: 32px; border-radius: 28px;
  background: var(--graphite);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.doc .contact h2 { margin-top: 0; }

/* Narrow screens */

@media (max-width: 900px) {
  .promise, .how { grid-template-columns: minmax(0, 1fr); }
  .promise .phone { justify-self: center; }
  .features { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 1.0625rem; }
  .lead { font-size: 1.1875rem; }
  .nav ul li:not(.keep) { display: none; }

  .hero { min-height: max(700px, 100svh); }
  /* Keep the sun in view: put the scene's x = 600 at the centre of the screen. */
  .scene svg { position: absolute; left: 50%; width: auto; aspect-ratio: 1600 / 1000; translate: -37.5% 0; }
  .pane {
    align-self: end;
    justify-self: stretch;
    width: auto;
    margin: 0 var(--gutter) var(--gutter);
    border-radius: 34px;
  }
  @media (prefers-reduced-motion: no-preference) {
    .pane { animation-name: rise; }
  }

  .phone { width: min(280px, 78vw); }
  .recovery { flex-direction: column; align-items: flex-start; }
  .footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .footer ul { justify-self: start; }
}
@keyframes rise { from { transform: translateY(24%); opacity: 0; } }
