/* ApplyKit website. One stylesheet, system fonts, light and dark. */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f7f5;
  --card: #ffffff;
  --text: #17211f;
  --muted: #4f5e5a;
  --line: #dbe4e0;
  --brand: #1f7a62;
  --brand-strong: #17634f;
  --brand-soft: #e3f1eb;
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(16, 40, 34, 0.06), 0 14px 36px rgba(16, 40, 34, 0.11);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412;
    --bg-soft: #131b18;
    --card: #17201d;
    --text: #e4ece9;
    --muted: #a3b4ae;
    --line: #283531;
    --brand: #4fbf98;
    --brand-strong: #79d6b4;
    --brand-soft: #18302a;
    --on-brand: #06231a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.38);
    color-scheme: dark;
  }
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

main {
  flex: 1; /* keeps the footer at the bottom of short pages */
}

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

a {
  color: var(--brand-strong);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--brand);
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.skip:focus {
  left: 16px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.narrow {
  max-width: 740px;
}

.wrap.wide {
  max-width: 1180px;
}

.center {
  text-align: center;
}

/* Header and footer */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

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

.brand.small {
  font-size: 1rem;
  gap: 8px;
}

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

.site-header nav a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--text);
  background: var(--bg-soft);
}

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-inner {
  display: grid;
  gap: 16px;
}

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

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--brand-strong);
  color: var(--on-brand);
}

.button.secondary {
  background: transparent;
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

.button.secondary:hover {
  background: var(--brand-soft);
}

.button[disabled] {
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: default;
}

.button small {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Home */

.hero {
  padding: 64px 0 8px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg) 70%);
}

.hero h1 {
  max-width: 15em;
  margin: 0 auto 0.45em;
}

.eyebrow {
  margin-bottom: 0.9em;
  color: var(--brand-strong);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lede {
  max-width: 40em;
  margin: 0 auto 1.6em;
  color: var(--muted);
  font-size: 1.15rem;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-shot {
  margin-top: 48px;
}

.shot.portrait {
  justify-self: center;
  width: 100%;
  max-width: 370px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-soft);
}

.split {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }

  .split.reverse .copy {
    order: 2;
  }
}

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

.checks {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  margin: 0 0 0.6em;
  padding-left: 32px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.checks li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: calc(0.2em + 5px);
  width: 5px;
  height: 10px;
  border: solid var(--brand-strong);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
}

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

/* Pricing */

.plans {
  display: grid;
  gap: 20px;
  margin: 32px 0;
}

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

.plan {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.plan h2,
.plan h3 {
  font-size: 1.15rem;
}

.price {
  margin: 0.1em 0 0.5em;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

.plan .checks {
  margin: 0;
}

/* Questions */

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

summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  cursor: pointer;
}

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

summary::after {
  content: '+';
  color: var(--brand-strong);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

details[open] summary::after {
  content: '\2013';
}

details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Policy pages */

.page-head {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.page-head .lede {
  margin: 0;
}

.page-head + .section {
  padding-top: 44px;
}

.updated {
  margin: 0;
  color: var(--muted);
}

.prose h2 {
  margin-top: 1.9em;
  font-size: 1.4rem;
}

.prose h3 {
  margin-top: 1.5em;
  font-size: 1.1rem;
}

.prose > :first-child,
.summary-box > :first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

.summary-box {
  margin: 1.5em 0;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--brand-soft);
}

p.summary-box {
  font-weight: 500;
}

.summary-box h2 {
  font-size: 1.15rem;
}

.summary-box ul {
  margin: 0;
}

.services {
  display: grid;
  gap: 12px;
  margin: 1.2em 0 1.5em;
}

.services > div {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.services dt {
  font-weight: 700;
}

.services dd {
  margin: 4px 0 0;
  color: var(--muted);
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

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

  .hero {
    padding-top: 44px;
  }

  .section {
    padding: 56px 0;
  }
}
