@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=Fraunces:opsz,ital,wght@9..144,0,400;9..144,0,500;9..144,1,400;9..144,1,500&display=swap');

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

:root {
  --bg: hsl(40, 33%, 96%);
  --fg: hsl(30, 15%, 20%);
  --border: hsl(30, 20%, 85%);
  --card: hsl(40, 33%, 98%);
  --primary: hsl(20, 30%, 60%);
  --primary-fg: hsl(40, 33%, 98%);
  --secondary: hsl(105, 15%, 65%);
  --muted: hsl(40, 20%, 90%);
  --muted-fg: hsl(30, 10%, 45%);
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'Fraunces', serif;
  --max-w: 1200px;
  --px: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: hsla(40, 33%, 96%, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--primary);
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}

nav a:hover {
  color: var(--fg);
}

nav a.cta {
  color: var(--primary);
}

nav a.cta:hover {
  color: hsl(20, 30%, 48%);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

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

.mobile-nav a {
  padding: 0.875rem var(--px);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-fg);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background-color 0.2s;
}

.mobile-nav a:hover {
  color: var(--fg);
  background-color: var(--muted);
}

.mobile-nav a.cta {
  color: var(--primary);
}

section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--muted-fg);
  line-height: 1.75;
}

.text-fg {
  color: var(--fg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  background-color: hsl(20, 30%, 52%);
}

.btn-outline {
  background-color: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--muted);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 8rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--bg) 30%, hsla(40, 33%, 96%, 0.75) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.icon-arrow {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem {
  background-color: var(--card);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col img {
  width: 100%;
  height: auto;
  box-shadow: 0 12px 40px hsla(30, 15%, 20%, 0.12);
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.text-block p strong {
  color: var(--fg);
  font-weight: 600;
}

.outcomes {
  background-color: var(--bg);
}

.outcomes-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
}

.card h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
}

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

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 2px;
}

.step-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--fg);
}

.step p {
  font-size: 0.875rem;
}

.img-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.img-duo img:nth-child(2) {
  margin-top: 2rem;
}

.img-duo img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.author {
  background-color: var(--bg);
}

.author-inner {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.author-img {
  flex-shrink: 0;
  width: 320px;
}

.author-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.author-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.author-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq {
  background-color: var(--card);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

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

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-arrow {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
}

.faq-item.open .faq-a {
  display: block;
}

.apply {
  background-color: var(--card);
  border-top: 1px solid var(--border);
}

.apply-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}

.form-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-fg);
  opacity: 0.7;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(20, 30%, 60%, 0.15);
}

textarea {
  resize: none;
}

.form-note {
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted-fg);
  margin-top: 1rem;
}

.form-note a {
  text-decoration: underline;
  color: var(--muted-fg);
}

.form-note a:hover {
  color: var(--fg);
}

footer {
  background-color: var(--muted);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.footer-brand p {
  font-size: 0.875rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--fg);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.footer-col ul a {
  color: var(--muted-fg);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem;
}

.cookie-inner {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px hsla(30, 15%, 20%, 0.12);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-actions a {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
}

.cookie-actions a:hover {
  text-decoration: underline;
}

.cookie-actions button {
  padding: 0.5rem 1.25rem;
  background-color: var(--primary);
  color: var(--primary-fg);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.cookie-actions button:hover {
  background-color: hsl(20, 30%, 52%);
}

.page-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 4rem var(--px);
}

.page-content h1 {
  margin-bottom: 2rem;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--fg);
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-body ul li {
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--px);
}

.success-box {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.success-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  color: var(--secondary);
}

.success-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-box h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.success-box p {
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .two-col .img-wrap {
    order: -1;
  }
  .author-inner {
    flex-direction: column;
  }
  .author-img {
    width: 100%;
  }
  .img-duo img {
    height: 10rem;
  }
  .hero {
    min-height: 70vh;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  :root {
    --px: 1rem;
  }
  section {
    padding: 3.5rem 0;
  }
  h1 {
    font-size: 2.125rem;
  }
}
