:root {
  --ee: cubic-bezier(0.19, 1, 0.22, 1);
  --eq: cubic-bezier(0.77, 0, 0.175, 1);
  --bg: #f7f1e8;
  --bg-2: #eaf5f2;
  --paper: #fffdf8;
  --paper-2: #fff7ea;
  --ink: #27323a;
  --ink-2: #536266;
  --ink-3: #748080;
  --line: rgba(39, 50, 58, 0.14);
  --line-2: rgba(39, 50, 58, 0.08);
  --glass-bg: rgba(255, 253, 248, 0.78);
  --glass-border: rgba(255, 255, 255, 0.72);
  --blue: #7fb8cc;
  --blue-deep: #256a78;
  --green: #4f9c78;
  --green-soft: #d9eee1;
  --coral: #ed8068;
  --coral-soft: #ffe0d6;
  --beige: #d6bc91;
  --cream: #fff8ec;
  --shadow: 0 24px 70px rgba(65, 72, 61, 0.14);
  --font-sans: "Space Grotesk", "Trebuchet MS", sans-serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --radius: 8px;
  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(127, 184, 204, 0.18), transparent 32%),
    linear-gradient(225deg, rgba(237, 128, 104, 0.14), transparent 34%),
    repeating-linear-gradient(90deg, rgba(39, 50, 58, 0.025) 0, rgba(39, 50, 58, 0.025) 1px, transparent 1px, transparent 44px),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

main {
  padding-top: var(--header-h);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(255, 253, 248, 0.82);
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand strong {
  color: var(--blue-deep);
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--coral), var(--blue));
  box-shadow: 0 10px 22px rgba(37, 106, 120, 0.18);
}

.logo-mark::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 12px;
  border: 2px solid #fffdf8;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  bottom: 8px;
}

.logo-mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-left: 2px solid #fffdf8;
  border-top: 2px solid #fffdf8;
  transform: rotate(45deg);
  top: 7px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ee), background 0.25s, color 0.25s, border-color 0.25s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--paper);
  border-color: var(--line);
  color: var(--blue-deep);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-icon i {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s var(--ee), opacity 0.3s;
}

.menu-btn.open .menu-icon i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.open .menu-icon i:nth-child(2) {
  opacity: 0;
}

.menu-btn.open .menu-icon i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(39, 50, 58, 0.36);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ee), visibility 0.3s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 90;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.35s var(--ee), visibility 0.35s, transform 0.35s var(--ee);
}

.menu-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 4px 18px;
  border-bottom: 1px solid var(--line-2);
}

.menu-header h2 {
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1.1;
}

.menu-kicker,
.menu-footer {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
}

.menu-item {
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ee), color 0.25s;
}

.menu-item:hover,
.menu-item.active {
  background: var(--cream);
  border-color: var(--line);
  color: var(--blue-deep);
  transform: translateX(4px);
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 92px) 0;
}

.section-soft {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  background: rgba(255, 253, 248, 0.46);
  border-block: 1px solid var(--line-2);
}

.hero {
  min-height: calc(92vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  padding-top: clamp(36px, 5vw, 70px);
}

.hero-copy,
.page-hero-copy,
.section-head,
.text-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero h1,
.page-hero h1 {
  max-width: 920px;
  font-family: var(--font-sans);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.page-hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
}

.lead {
  max-width: 720px;
  color: var(--ink-2);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 7px 13px;
  border: 1px solid rgba(37, 106, 120, 0.18);
  border-radius: 999px;
  background: rgba(234, 245, 242, 0.76);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(237, 128, 104, 0.16);
}

.hero-actions,
.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s var(--ee), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--coral);
  color: #fffdf8;
  box-shadow: 0 14px 34px rgba(237, 128, 104, 0.24);
}

.btn-primary:hover {
  background: #d96d58;
}

.btn-secondary,
.btn-muted {
  background: var(--paper);
  border-color: var(--line);
  color: var(--blue-deep);
}

.btn-secondary:hover,
.btn-muted:hover {
  background: var(--bg-2);
}

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

.hero-media,
.image-panel {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-3);
  font-size: 12px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head h2,
.text-panel h2,
.safe-card h2,
.legal-card h2 {
  font-family: var(--font-sans);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.section-head p,
.text-panel p,
.safe-card p,
.legal-card p,
.feature-card p,
.tip-card p,
.timeline-item p,
.notice-card p {
  color: var(--ink-2);
}

.glass-card,
.feature-card,
.tip-card,
.timeline-item,
.notice-card,
.safe-card,
.contact-card,
.contact-form,
.legal-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.tip-card,
.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  transition: transform 0.25s var(--ee), border-color 0.25s, background 0.25s;
}

.feature-card:hover,
.tip-card:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 106, 120, 0.24);
  background: rgba(255, 253, 248, 0.92);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--font-sans);
  font-weight: 800;
}

.feature-card h3,
.tip-card h3,
.timeline-item h3,
.notice-card h3,
.safe-card h3,
.contact-card h2 {
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.18;
}

.split-section,
.two-col,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.split-section.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.image-panel img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.mini-grid div {
  padding: 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.64);
}

.mini-grid strong,
.mini-grid span {
  display: block;
}

.mini-grid span {
  color: var(--ink-3);
  font-size: 14px;
}

.tips-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide .timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-item span {
  color: var(--coral);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.notice-card,
.safe-card {
  padding: clamp(24px, 4vw, 40px);
}

.safe-section {
  padding-top: 36px;
}

.safe-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(135deg, rgba(217, 238, 225, 0.82), rgba(255, 253, 248, 0.86));
}

.page-hero {
  min-height: 44vh;
  display: flex;
  align-items: center;
}

.compact-hero {
  padding-bottom: clamp(42px, 5vw, 70px);
}

.legal-hero {
  min-height: 36vh;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 920px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.78);
}

.faq-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.faq-button span {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.faq-button span::before,
.faq-button span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-deep);
  transition: transform 0.25s var(--ee);
}

.faq-button span::after {
  transform: rotate(90deg);
}

.faq-item.open .faq-button span::after {
  transform: rotate(0);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ee);
}

.faq-panel p {
  overflow: hidden;
  padding: 0 20px;
  color: var(--ink-2);
}

.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-panel p {
  padding-bottom: 18px;
}

.contact-layout {
  align-items: start;
}

.contact-card,
.contact-form {
  padding: clamp(22px, 4vw, 34px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card a,
.footer-col a,
.legal-card a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.contact-card a:hover,
.footer-col a:hover,
.legal-card a:hover {
  text-decoration: underline;
}

.small-note {
  color: var(--ink-3);
  font-size: 13px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-row label {
  color: var(--ink);
  font-weight: 800;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row textarea {
  resize: vertical;
  min-height: 150px;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(127, 184, 204, 0.18);
}

.form-row input.is-invalid,
.form-row textarea.is-invalid {
  border-color: var(--coral);
}

.field-error,
.form-status {
  min-height: 18px;
  color: #b85242;
  font-size: 13px;
  font-weight: 700;
}

.form-status.success {
  color: var(--green);
}

.legal-content {
  padding-top: 26px;
}

.legal-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 920px;
  padding: clamp(24px, 5vw, 46px);
}

.legal-card h2 {
  margin-top: 16px;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 20px auto 0;
  padding: 46px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: 30px;
}

.footer-brand,
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-logo {
  margin-bottom: 8px;
}

.footer-brand p,
.footer-col p,
.footer-disclaimer p,
.footer-bottom {
  color: var(--ink-2);
}

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 16px;
}

.footer-col a {
  width: fit-content;
}

.footer-disclaimer {
  margin-top: 32px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(234, 245, 242, 0.58);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
}

.cookie-banner.show {
  display: grid;
}

.cookie-banner h2 {
  font-family: var(--font-sans);
  font-size: 18px;
}

.cookie-banner p {
  color: var(--ink-2);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ee), transform 0.75s var(--ee);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero,
  .split-section,
  .split-section.reverse,
  .two-col,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .feature-grid.three,
  .tips-row,
  .guide .timeline,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 72px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .brand {
    font-size: 15px;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 48px 0;
  }

  .section-soft {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .feature-grid,
  .feature-grid.three,
  .tips-row,
  .guide .timeline,
  .timeline,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .tip-card,
  .timeline-item {
    min-height: auto;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1 1 160px;
  }

  .footer-bottom,
  .menu-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}