/* Paratone marketing pages (home, pricing, terms, privacy, 404): the floating nav, the
   footer, the large marketing button and the page frame. Colours, fonts, the
   app's Button and inputs come from shared.css; the home page's sections are
   in landing.css, and signing up and logging in are auth.css. */

/* Moving to another page (Start free → sign-up, say) cross-fades, unless
   motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

:root {
  /* Side gutter around the 1200px content column. */
  --gutter: 48px;
  --content: 1200px;
}

html {
  scroll-behavior: smooth;
  /* Anchored sections land below the floating nav. */
  scroll-padding-top: 96px;
}

body {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
}

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

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img {
  display: block;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--accent-solid);
  color: var(--on-accent);
}

.skip:focus {
  top: 12px;
}

.ico {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Links that have nowhere to go yet: set like their neighbours, not clickable. */
.soon {
  cursor: default;
}

/* ---------------------------------------------------------------- nav */

/* Floats 20px from the top over everything, translucent and blurred, so the
   page visibly scrolls beneath it. It never hides. */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 20;
  translate: -50% 0;
  width: min(var(--content), 100% - 2 * var(--gutter));
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 10px 0 18px;
  border: 1px solid color-mix(in srgb, var(--border-strong) 70%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-surface) 70%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.nav .brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav .mark {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links > * {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
  transition: color var(--motion-fast);
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text-primary);
}

.nav-links .chev {
  width: 14px;
  height: 14px;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-login {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-login:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The app's Accent button, at the 32px the nav needs. */
.nav .btn {
  padding: 6px 12px;
}

.nav-menu {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-menu:hover {
  background: var(--bg-muted);
}

.nav-menu .ico {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------------- marketing button */

/* Landing/Button: the large call to action. The icon is drawn in
   currentColor, so it always takes the label's colour. */
.lbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}

.lbtn:has(.ico) {
  padding-right: 20px;
}

.lbtn .ico {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.lbtn:active {
  transform: translateY(1px);
}

.lbtn.accent {
  background: var(--accent-blue);
  color: var(--on-accent);
}

.lbtn.accent:hover {
  background: var(--accent-blue-hover);
}

.lbtn.primary {
  background: var(--accent-solid);
  color: var(--on-accent);
}

.lbtn.primary:hover {
  background: #2b2b29;
}

.lbtn.secondary {
  border-color: var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.lbtn.secondary:hover {
  background: var(--bg-subtle);
}

.lbtn.on-dark {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--on-accent);
}

.lbtn.on-dark:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.lbtn.accent:focus-visible,
.lbtn.on-dark:focus-visible {
  outline-color: var(--accent-blue);
}

/* ---------------------------------------------------------------- page heads (pricing, log in, sign up, 404) */

.page {
  padding-top: 160px;
  padding-bottom: 120px;
}

.eyebrow {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.page-title {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-sub {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- pricing */

.pricing-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.pricing-head .page-sub {
  margin-top: 4px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 56px auto 0;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--border-default);
  border-radius: 20px;
  background: var(--bg-surface);
}

.plan-paid {
  border-color: var(--accent-solid);
  background: var(--accent-solid);
  color: var(--on-accent);
}

.plan h2 {
  font-size: 18px;
  font-weight: 600;
}

.price {
  margin-top: 12px;
  font-size: 16px;
}

.price span {
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan-for {
  margin-top: 12px;
  opacity: 0.72;
}

.plan ul {
  flex: 1;
  margin-block: 24px 32px;
}

.plan li {
  padding-block: 10px;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

.plan .lbtn {
  align-self: flex-start;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  max-width: 880px;
  margin: 120px auto 0;
}

.faq h2 {
  font-size: 36px;
  font-weight: 500;
  line-height: 42px;
  letter-spacing: -0.02em;
}

.faq details {
  border-top: 1px solid var(--border-default);
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq details:first-child summary {
  padding-top: 4px;
}

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

.faq summary::after {
  content: '+';
  color: var(--text-tertiary);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding-bottom: 20px;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------- terms, privacy */

/* One readable column of numbered sections. */
.legal {
  max-width: 720px;
  margin-inline: auto;
}

.legal-head {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}

.legal-date {
  color: var(--text-tertiary);
  font-size: 15px;
}

.legal h2 {
  margin: 48px 0 16px;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.01em;
}

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

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 16px;
}

.legal ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  list-style: disc;
}

.legal strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal a {
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding: 24px 0 48px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 80px;
  padding-bottom: 56px;
}

.footer .brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer .mark {
  width: 28px;
  height: 28px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--text-secondary);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 80px;
}

.footer-cols h2 {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.footer-cols ul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.footer-cols a,
.footer-cols .soon {
  color: var(--text-secondary);
  line-height: 20px;
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-legal {
  display: flex;
}

.footer-legal a {
  text-decoration: none;
}

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

.footer-legal > * + *::before {
  content: '·';
  margin-inline: 10px;
}

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

.lost {
  display: grid;
  place-items: start center;
}

.lost-card {
  width: 100%;
  max-width: 420px;
}

.lost-card .page-title {
  font-size: clamp(36px, 4vw, 44px);
}

.lost-card > p {
  margin-top: 12px;
  color: var(--text-secondary);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 1279px) {
  .nav-links {
    gap: 22px;
  }
}

/* The nav's links fold into a menu under the bar. */
@media (max-width: 1023px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-menu {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--border-default);
    border-radius: 14px;
    background: var(--bg-surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links > * {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: var(--bg-subtle);
  }

  .nav-links .chev {
    display: none;
  }
}

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

  .nav {
    top: 12px;
    padding-left: 14px;
  }

  .nav-actions {
    gap: 12px;
  }

  .page {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .footer-top {
    flex-direction: column;
  }

  .plans,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq {
    gap: 16px;
    margin-top: 80px;
  }

  .footer-cols {
    gap: 32px 48px;
  }
}

@media (max-width: 420px) {
  .nav-login {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
