/* Every Sixty site. Tokens match the extension (extension/lib/ui/theme.css and the brand sheet).
   Dark by default, light follows the system setting. Amber is the only accent.
   System fonts only: nothing is fetched from any other origin. */

:root {
  color-scheme: dark;
  --bg: #101315;
  --surface: #1a1e21;
  --surface-2: #22272b;
  --line: #394046;
  --control: #6b757d;
  --text: #e9e7e2;
  --muted: #9aa3ab;
  --accent: #f2a33c;
  --accent-press: #c97f1e;
  --on-accent: #101315;
  --accent-text: #f2a33c;
  --focus: #f2a33c;
  --hand: #f2a33c;
  --font: Inter, 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --measure: 66ch;
  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f2ed;
    --surface: #fbfaf7;
    --surface-2: #ece9e2;
    --line: #d2cec5;
    --control: #7a8189;
    --text: #101315;
    --muted: #555e66;
    --accent-text: #8a5300;
    --focus: #8a5300;
    --hand: #c97f1e;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Header ---------------------------------------------------------------------- */

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

.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-decoration-thickness: 2px;
}

/* ---- Hero ------------------------------------------------------------------------ */

.hero .wrap {
  display: grid;
  gap: 40px;
  padding-top: clamp(44px, 9vw, 96px);
  padding-bottom: clamp(48px, 9vw, 96px);
}

.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 750;
  text-wrap: balance;
}

.hero .lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
}

.cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 18px;
  line-height: 1.3;
  border-radius: 8px;
  border: 1px solid var(--control);
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  color: var(--text);
}

.btn[aria-disabled='true'] {
  background: var(--surface-2);
  border-style: dashed;
  color: var(--muted);
  cursor: not-allowed;
}

.cta small {
  font-size: 15px;
  color: var(--muted);
}

.dial {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 1;
  justify-self: start;
}

.dial img,
.dial svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hand line {
  stroke: var(--hand);
}

.hand {
  transform-origin: 60px 60px;
  animation: sweep 60s steps(60, end) infinite;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hand {
    animation: none;
  }
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 64px;
  }

  .dial {
    width: min(100%, 360px);
    justify-self: end;
  }
}

/* ---- Sections -------------------------------------------------------------------- */

.sec {
  border-top: 1px solid var(--line);
}

.sec .wrap {
  display: grid;
  gap: 24px;
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(40px, 7vw, 72px);
}

.sec h2 {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.sec h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 650;
}

.sec-body > * + * {
  margin-top: 20px;
}

.prose {
  max-width: var(--measure);
}

p {
  text-wrap: pretty;
}

.muted {
  color: var(--muted);
}

@media (min-width: 860px) {
  .sec .wrap {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 48px;
  }

  .sec h2 {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* The three retention tiers on one rail. */
.rail {
  max-width: var(--measure);
  margin-top: 36px;
}

.rail ol {
  display: flex;
  list-style: none;
  padding: 0;
  height: 10px;
  gap: 3px;
}

.rail li {
  background: var(--line);
  border-radius: 2px;
}

.rail li:nth-child(1) {
  background: var(--accent);
  flex: 1.3;
}

.rail li:nth-child(2) {
  flex: 1.8;
  background: var(--control);
}

.rail li:nth-child(3) {
  flex: 3.4;
}

.rail dl {
  display: flex;
  gap: 3px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.rail dl div:nth-child(1) {
  flex: 1.3;
}

.rail dl div:nth-child(2) {
  flex: 1.8;
}

.rail dl div:nth-child(3) {
  flex: 3.4;
}

.rail dt {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.rail dd {
  margin: 0;
}

@media (max-width: 480px) {
  .rail dl {
    flex-direction: column;
    gap: 2px;
  }

  .rail dl div {
    display: flex;
    gap: 8px;
  }
}

/* ---- Feature lists --------------------------------------------------------------- */

.feat {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feat li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.feat p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .feat {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

.group-title {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.pitch {
  margin: 8px 0 0;
  font-size: 18px;
  max-width: var(--measure);
}

.tag {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid var(--accent-text);
  border-radius: 999px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---- Steps and screenshot -------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0 12px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-text);
  border-radius: 50%;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 15px;
}

.steps p {
  color: var(--muted);
}

.shot {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

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

figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ---- Pricing --------------------------------------------------------------------- */

.plans {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.plans > li {
  padding: 22px 22px 24px;
  border-top: 1px solid var(--line);
}

.plans > li:first-child {
  border-top: 0;
}

.plans h3 {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.plans .price {
  margin-top: 6px;
  color: var(--text);
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.plans .price span {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.plans p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 560px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }

  .plans > li:nth-child(2) {
    border-top: 0;
  }

  .plans > li:nth-child(even) {
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 1000px) {
  .plans {
    grid-template-columns: repeat(4, 1fr);
  }

  .plans > li {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .plans > li:first-child {
    border-left: 0;
  }
}

.notice {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  max-width: var(--measure);
}

.faq details + details {
  margin-top: 0;
}

.fine {
  font-size: 15px;
  color: var(--muted);
  max-width: var(--measure);
}

/* ---- Privacy summary and FAQ ----------------------------------------------------- */

.ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: var(--measure);
}

.ticks li {
  position: relative;
  padding-left: 26px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.faq {
  border-top: 1px solid var(--line);
  max-width: 760px;
}

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

.faq summary {
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}

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

.faq details > :not(summary) {
  padding-bottom: 18px;
  max-width: var(--measure);
  color: var(--muted);
}

.faq details > :not(summary) + :not(summary) {
  margin-top: -6px;
}

/* ---- Legal pages ----------------------------------------------------------------- */

.doc {
  padding-top: clamp(36px, 7vw, 72px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.doc h1 {
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.doc .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.doc .summary {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  max-width: var(--measure);
}

.doc section {
  margin-top: 40px;
  max-width: var(--measure);
}

.doc h2 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.doc ul {
  padding-left: 1.25em;
}

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

.notfound {
  padding-top: clamp(56px, 12vw, 140px);
  padding-bottom: clamp(56px, 12vw, 140px);
}

.notfound h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.notfound p {
  margin-top: 14px;
  color: var(--muted);
}

.notfound .btn {
  margin-top: 28px;
}

/* ---- Footer ---------------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.foot .wrap {
  display: grid;
  gap: 20px 48px;
  padding-top: 36px;
  padding-bottom: 44px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.foot a {
  color: var(--text);
}

.foot p + p {
  margin-top: 6px;
}

@media (min-width: 860px) {
  .foot .wrap {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}
