:root {
  --primary: #0f7ca0;
  --primary-dark: #043a5a;
  --bg-light: #f5f5f7;
  --bg-soft: #edf7fb;
  --text-muted: #4f6470;
  --card-shadow: 0 18px 40px rgba(4, 58, 90, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #fff;
  color: #000;
}

/* NAVBAR */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  backdrop-filter: blur(8px);
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  display: block;
  height: 24px;
  width: auto;
  max-width: min(78px, 22vw);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar a:hover,
.navbar a.active {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 2rem 4.5rem;
  background:
    radial-gradient(circle at top left, rgba(15, 124, 160, 0.18), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(4, 58, 90, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fdff 0%, var(--bg-light) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  top: 2.5rem;
  right: -5rem;
  width: 14rem;
  height: 14rem;
  background: rgba(15, 124, 160, 0.08);
}

.hero::after {
  bottom: -4rem;
  left: -3rem;
  width: 12rem;
  height: 12rem;
  background: rgba(4, 58, 90, 0.08);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 620px;
}

.hero-badge,
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(15, 124, 160, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(4, 58, 90, 0.08);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 1.25rem 0 0;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 124, 160, 0.12);
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(4, 58, 90, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-device-frame {
  position: absolute;
  right: 2rem;
  top: 0;
  width: min(100%, 320px);
  padding: 1rem;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 242, 248, 0.96));
  box-shadow: 0 24px 60px rgba(4, 58, 90, 0.22);
  transform: rotate(4deg);
}

.hero-device-frame img {
  display: block;
  width: 100%;
  border-radius: 24px;
}

.hero-floating-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 220px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 124, 160, 0.1);
  box-shadow: var(--card-shadow);
}

.hero-floating-card strong {
  color: var(--primary-dark);
}

.hero-floating-card span {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.hero-floating-card-top {
  left: 0;
  top: 3.5rem;
}

.hero-floating-card-bottom {
  left: 1.5rem;
  bottom: 2.5rem;
}

/* TITLES */

h2, h3 {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* BUTTONS */

.cta-button {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
  background-size: 200% auto;
  animation: gradientMove 4s ease infinite;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 124, 160, 0.18);
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 24px rgba(4, 58, 90, 0.08);
}

.signup-button {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark), var(--primary));
  background-size: 200% auto;
  animation: gradientMove 4s ease infinite;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-button:hover,
.signup-button:hover,
.cta-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.cta-secondary:hover {
  border-color: rgba(15, 124, 160, 0.35);
}

.signup-button.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* GRADIENT ANIMATION */

@keyframes gradientMove {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* SIGNUP */

.signup {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(15, 124, 160, 0.12), transparent 22%),
    linear-gradient(180deg, #f7fbfd 0%, var(--bg-light) 100%);
  padding: 4rem 2rem;
}

.signup-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 2rem;
  align-items: stretch;
}

.signup-copy {
  text-align: left;
  padding: 1rem 0;
}

.signup h2 {
  font-size: 2rem;
  margin: 1rem 0;
}

.signup p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.signup-copy > p {
  max-width: 540px;
  color: var(--text-muted);
  line-height: 1.7;
}

.signup-benefits {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.signup-benefit {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 124, 160, 0.12);
  box-shadow: 0 10px 24px rgba(4, 58, 90, 0.08);
}

.signup-benefit strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}

.signup-benefit span {
  color: var(--text-muted);
  line-height: 1.5;
}

.signup-card {
  position: relative;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 124, 160, 0.12);
  box-shadow: var(--card-shadow);
}

.signup-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.signup-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.signup-form input[type="email"] {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-sizing: border-box;
  background: #fff;
}

.beta-note {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* SELECT */

.signup-form select {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  width: 100%;
  appearance: none;
  background-color: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

/* SUBPAGES */

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 2rem 3rem;
  background:
    radial-gradient(circle at top left, rgba(15, 124, 160, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(4, 58, 90, 0.12), transparent 22%),
    linear-gradient(180deg, #f9fdff 0%, var(--bg-light) 100%);
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: auto -5rem -5rem auto;
  width: 15rem;
  height: 15rem;
  border-radius: 999px;
  background: rgba(15, 124, 160, 0.08);
  pointer-events: none;
}

.subpage-hero-inner,
.subpage-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.subpage-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 2rem;
  align-items: start;
}

.subpage-hero-copy {
  max-width: 720px;
}

.subpage-hero-copy h1 {
  margin: 1rem 0 0.75rem;
}

.subpage-hero-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.subpage-hero-aside {
  align-self: stretch;
}

.subpage-aside-card,
.status-card,
.subpage-card,
.subpage-panel,
.contact-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 124, 160, 0.12);
  box-shadow: var(--card-shadow);
}

.subpage-aside-card,
.status-card,
.subpage-card,
.subpage-panel,
.contact-card {
  border-radius: 24px;
  padding: 1.5rem;
}

.subpage-aside-card strong,
.status-card strong,
.subpage-card strong,
.subpage-panel strong,
.contact-card strong {
  color: var(--primary-dark);
}

.subpage-aside-card p,
.status-card p,
.subpage-card p,
.subpage-panel p,
.contact-card p {
  color: var(--text-muted);
  line-height: 1.65;
}

.subpage-aside-card p:last-child,
.status-card p:last-child,
.subpage-card p:last-child,
.subpage-panel p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.subpage-section {
  padding: 0 2rem 4rem;
  background:
    linear-gradient(180deg, rgba(247, 251, 253, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
}

.subpage-stack {
  display: grid;
  gap: 1.5rem;
}

.subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.subpage-card h2,
.subpage-panel h2,
.contact-card h2 {
  margin-top: 0;
}

.subpage-card h3,
.subpage-panel h3,
.contact-card h3 {
  margin-bottom: 0.5rem;
}

.subpage-card ul,
.subpage-panel ul,
.contact-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
}

.subpage-card li,
.subpage-panel li,
.contact-card li {
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.subpage-card-compact {
  padding: 1.35rem 1.5rem;
}

.subpage-card-accent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(238, 247, 251, 0.95) 100%);
}

.subpage-card-muted {
  background: rgba(248, 251, 253, 0.95);
}

.status-card {
  display: grid;
  gap: 0.85rem;
}

.status-card-success {
  border-color: rgba(18, 130, 89, 0.18);
}

.status-card-error {
  border-color: rgba(176, 0, 32, 0.16);
}

.status-card-error strong {
  color: #8d1028;
}

.status-card-list {
  display: grid;
  gap: 0.85rem;
}

.status-card-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
}

.status-card-list span::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  flex-shrink: 0;
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.subpage-intro {
  max-width: 760px;
  margin-bottom: 1rem;
}

.subpage-intro p {
  color: var(--text-muted);
  line-height: 1.7;
}

.subpage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 124, 160, 0.16);
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 10px 24px rgba(4, 58, 90, 0.08);
}

.subpage-meta {
  display: grid;
  gap: 0.65rem;
}

.subpage-meta span {
  color: var(--text-muted);
  line-height: 1.55;
}

.subpage-highlight-list {
  display: grid;
  gap: 1rem;
}

.subpage-highlight {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(248, 251, 253, 0.95);
  border: 1px solid rgba(15, 124, 160, 0.1);
}

.subpage-highlight span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.page-form {
  display: grid;
  gap: 1rem;
}

.page-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.page-form input,
.page-form textarea,
.page-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d0d7da;
  border-radius: 12px;
  font-size: 1rem;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.page-form input:focus,
.page-form textarea:focus,
.page-form select:focus {
  border-color: var(--primary);
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(15, 124, 160, 0.12);
}

.page-form textarea {
  resize: vertical;
  min-height: 130px;
}

.page-form .signup-button {
  width: 100%;
  justify-content: center;
}

.message-box {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.message-box-success {
  background: rgba(18, 130, 89, 0.1);
  color: #136343;
}

.message-box-error {
  background: rgba(176, 0, 32, 0.08);
  color: #8d1028;
}

.legal-prose {
  display: grid;
  gap: 1.25rem;
}

.legal-prose .subpage-card h2,
.legal-prose .subpage-card h3 {
  -webkit-text-fill-color: initial;
  -webkit-background-clip: initial;
  background: none;
  text-shadow: none;
  color: var(--primary-dark);
}

.legal-prose .subpage-card h3 {
  margin-top: 1.2rem;
}

.legal-prose .subpage-card a,
.contact-card a,
.subpage-card a,
.subpage-panel a {
  color: var(--primary);
}

.legal-callout {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.96), rgba(237, 247, 251, 0.92));
  border: 1px solid rgba(15, 124, 160, 0.1);
}

.hero-minimal {
  min-height: auto;
}

/* FEATURES */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.features-alt {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  border-radius: 32px;
}

.feature {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(15,124,160,0.25);
}

.feature p {
  color: #444;
  line-height: 1.5;
}

/* APP PREVIEW */

.app-preview {
  background-color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

.screenshot-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.screenshot {
  width: 100%;
  max-width: 300px;
}

.screenshot img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  margin-bottom: 1rem;
}

/* FAQ */

.faq {
  background:
    radial-gradient(circle at top right, rgba(15, 124, 160, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg-light) 0%, #eef7fb 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.faq h2 {
  margin-bottom: 2rem;
}

.faq-item {
  max-width: 760px;
  margin: 0 auto 1rem auto;
  text-align: left;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 124, 160, 0.1);
  box-shadow: 0 14px 28px rgba(4, 58, 90, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover,
.faq-item.is-open {
  transform: translateY(-2px);
  border-color: rgba(15, 124, 160, 0.22);
  box-shadow: 0 18px 34px rgba(4, 58, 90, 0.12);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 1.2rem 1.25rem;
  cursor: pointer;
  color: var(--primary-dark);
}

.faq-question .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(15, 124, 160, 0.1);
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 1.25rem;
}

.faq-answer p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* TOAST */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  max-width: min(420px, calc(100vw - 40px));
  line-height: 1.5;
  box-shadow: 0 18px 36px rgba(4, 58, 90, 0.28);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast-error {
  background-color: #B00020;
}

/* FOOTER */

.footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-light);
  font-size: 0.9rem;
  color: #555;
}

/* COOKIE */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-light);
  color: #000;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 90%;
  width: 400px;
  text-align: center;
  font-size: 0.95rem;
  z-index: 9999;
  display: none;
}

.cookie-banner button {
  margin-top: 0.8rem;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.cookie-banner button:hover {
  background-color: var(--primary-dark);
}

/* BURGER MENU */

.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

/* RESPONSIVE */

@media (max-width: 768px) {

  .navbar {
    flex-wrap: wrap;
    padding: 0.9rem 1.1rem;
  }

  .burger {
    display: block;
  }

  #nav-menu {
    display: none;
    width: 100%;
  }

  #nav-menu.active {
    display: block;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(15, 124, 160, 0.12);
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
  }

  .navbar li a {
    display: block;
    padding: 0.15rem 0;
  }

  .hero {
    padding: 4rem 1rem 3rem;
  }

  .hero-inner,
  .signup-shell,
  .subpage-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
    text-align: center;
  }

  .hero-actions,
  .hero-highlights {
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
    max-width: 360px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    justify-items: center;
  }

  .subpage-hero,
  .subpage-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .subpage-hero-copy {
    max-width: 100%;
  }

  .subpage-hero-aside {
    width: 100%;
    max-width: 520px;
  }

  .subpage-grid {
    grid-template-columns: 1fr;
  }

  .subpage-aside-card,
  .status-card,
  .subpage-card,
  .subpage-panel,
  .contact-card {
    padding: 1.25rem;
  }

  .hero-device-frame {
    position: relative;
    right: auto;
    top: auto;
    width: min(100%, 260px);
    transform: none;
  }

  .hero-floating-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(100%, 280px);
    max-width: 280px;
    padding: 0.9rem 1rem;
  }

  .hero-floating-card-top {
    order: 2;
  }

  .hero-floating-card-bottom {
    order: 3;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .features {
    grid-template-columns: 1fr;
    padding: 3rem 1rem;
  }

  .features-alt {
    border-radius: 24px;
  }

  .app-preview {
    padding: 3rem 1rem;
  }

  .screenshot-grid {
    gap: 1.25rem;
  }

  .screenshot {
    max-width: min(100%, 360px);
    margin: 0 auto;
  }

  .signup {
    padding: 3rem 1rem;
  }

  .signup-copy {
    text-align: center;
  }

  .signup-copy > p {
    max-width: none;
  }

  .signup-card {
    padding: 1.5rem;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: auto;
    top: calc(env(safe-area-inset-top, 0px) + 82px);
    max-width: none;
    width: auto;
    padding: 0.95rem 1rem;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    transform: none;
    width: auto;
    max-width: none;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  }

}

@media (max-width: 480px) {

  .navbar {
    padding: 0.85rem 0.9rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .cta-secondary {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .navbar .logo {
    max-width: 72px;
  }

  .navbar .logo img {
    height: 20px;
    max-width: 100%;
  }

  .hero-badge,
  .section-badge {
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero-highlights span {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    max-width: 100%;
    gap: 0.85rem;
  }

  .subpage-actions {
    flex-direction: column;
  }

  .subpage-actions a,
  .subpage-actions button {
    width: 100%;
    text-align: center;
  }

  .hero-device-frame {
    width: min(100%, 210px);
    padding: 0.8rem;
  }

  .hero-floating-card {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 0.95rem;
    font-size: 0.9rem;
  }

  .hero-floating-card span {
    font-size: 0.9rem;
  }

  .signup h2 {
    font-size: 1.75rem;
  }

  .subpage-hero-copy h1 {
    font-size: 2rem;
  }

  .subpage-kicker,
  .hero-badge,
  .section-badge {
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }

  .subpage-aside-card,
  .status-card,
  .subpage-card,
  .subpage-panel,
  .contact-card,
  .signup-card {
    border-radius: 20px;
    padding: 1.1rem;
  }

  .app-preview {
    padding: 2.6rem 0.9rem;
  }

  .screenshot-grid {
    gap: 1rem;
  }

  .screenshot {
    max-width: 100%;
  }

  .screenshot img {
    border-radius: 14px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1rem;
  }

  .faq-answer {
    padding: 0 1rem;
  }

  .faq-answer p {
    font-size: 0.96rem;
  }

  .toast {
    top: calc(env(safe-area-inset-top, 0px) + 74px);
    left: 12px;
    right: 12px;
    padding: 0.9rem 0.95rem;
    font-size: 0.94rem;
    border-radius: 14px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
  }

  .cookie-banner button {
    width: 100%;
  }

}
