:root {
  --color-primary: #2FA4D7;
  --color-secondary: #F5E9D8;
  --color-text: #3E2C23;
  --color-accent: #E76F2E;
  --color-white: #ffffff;
  --font-main: "Courier New", "Lucida Console", monospace;
  --font-size-base: 16px;
  --font-size-small: 14px;
  --font-size-lg: 22px;
  --shadow-sm: 0 2px 0 rgba(62, 44, 35, 0.2);
  --shadow-md: 0 6px 0 rgba(62, 44, 35, 0.25);
  --shadow-lg: 0 10px 0 rgba(62, 44, 35, 0.3);
  --shadow-soft: 0 12px 28px rgba(62, 44, 35, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: linear-gradient(180deg, #fffaf2 0%, var(--color-secondary) 55%, #f4e1cc 100%);
  scroll-behavior: smooth;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow-soft);
  animation: slideDown 0.5s ease;
}

.top-bar,
.main-nav-wrap,
main,
.cookie-banner,
footer {
  width: min(1200px, 94%);
  margin: 0 auto;
}

.top-bar {
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-small);
  padding: var(--space-2) 0;
}

.main-nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid rgba(47, 164, 215, 0.2);
  padding: var(--space-2) 0;
}

.brand {
  display: block;
}

.brand img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.brand img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.brand:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .brand img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .brand img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.menu {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
}

.menu-toggle {
  display: none;
  width: auto;
  border: 2px solid rgba(62, 44, 35, 0.25);
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: none;
}

.menu a {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.menu a:hover,
.menu a:focus-visible {
  background: rgba(47, 164, 215, 0.15);
}

main {
  padding: var(--space-5) 0 var(--space-6);
}

.hero,
.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.hero-card,
.form-card,
.detail-card,
.content-section article,
.faq-item,
.content-section,
.cookie-banner {
  background: var(--color-white);
  border: 2px solid rgba(62, 44, 35, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-3);
}

.interactive-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.interactive-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 164, 215, 0.5);
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin-top: 0;
}

h1 {
  font-size: clamp(26px, 4vw, 40px);
}

h2 {
  font-size: clamp(20px, 3vw, 30px);
}

.subtitle {
  font-size: 18px;
}

.rating-badge {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
  background: rgba(47, 164, 215, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
}

.trust {
  color: var(--color-accent);
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.price {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
  font-size: var(--font-size-lg);
}

.old-price {
  text-decoration: line-through;
  opacity: 0.7;
}

.new-price {
  color: var(--color-accent);
  font-weight: 700;
}

form {
  display: grid;
  gap: var(--space-1);
}

input,
textarea,
button {
  width: 100%;
  font: inherit;
  padding: var(--space-2);
  border: 2px solid rgba(62, 44, 35, 0.25);
  border-radius: var(--radius-sm);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 164, 215, 0.2);
}

.input-error {
  border-color: var(--color-accent);
}

.error-message {
  margin: 0 0 var(--space-1);
  min-height: 18px;
  color: #b42318;
  font-size: 13px;
}

.consent-label {
  display: flex;
  align-items: start;
  gap: var(--space-1);
}

.consent-label input {
  width: 18px;
  margin-top: 2px;
}

button,
.email-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, background 0.25s ease;
}

button:hover,
button:focus-visible,
.email-btn:hover,
.email-btn:focus-visible {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.content-section {
  margin-top: var(--space-4);
  animation: fadeRise 0.6s ease both;
}

.policy-main .content-section {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.policy-highlight {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 164, 215, 0.35);
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.policy-grid {
  margin-top: var(--space-3);
}

.faq-item+.faq-item {
  margin-top: var(--space-3);
}

.faq-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--color-text);
  box-shadow: none;
  border: 0;
  padding: 0;
  font-weight: 700;
}

.faq-collapsible p {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.faq-collapsible.open p {
  max-height: 220px;
  opacity: 1;
  margin-top: var(--space-2);
}

.trust-strip article {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.value-grid .value-card {
  position: relative;
  overflow: hidden;
}

.value-grid .value-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(47, 164, 215, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.value-grid .value-card:hover::after {
  opacity: 1;
}

.planner-section .planner-box {
  margin-top: var(--space-2);
  padding: var(--space-3);
  border: 2px dashed rgba(47, 164, 215, 0.35);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff 0%, #f6fbff 100%);
}

#routine-days {
  padding: 0;
  border: 0;
}

#routine-plan-output {
  margin-bottom: 0;
  font-weight: 700;
  color: var(--color-accent);
}

.cta-section {
  text-align: center;
  background: linear-gradient(145deg, #ffffff 0%, #f4fbff 60%);
}

.email-btn {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
}

#location iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
}

footer {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-top: 2px solid rgba(62, 44, 35, 0.2);
  padding: var(--space-3) 0;
  font-size: var(--font-size-small);
  margin-bottom: calc(var(--space-6) + 24px);
}

.cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--space-3);
  z-index: 20;
  width: min(920px, 94%);
  animation: fadeRise 0.5s ease;
}

.cookie-banner p {
  margin-top: 0;
}

.cookie-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cookie-actions button,
.cookie-settings button {
  width: auto;
}

.cookie-settings {
  margin-top: var(--space-2);
  display: grid;
  gap: var(--space-1);
}

.cookie-settings label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.cookie-settings input {
  width: 18px;
}

.hidden {
  display: none;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0.5;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {

  .hero,
  .three-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {

  .top-bar,
  .main-nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav-wrap nav {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-1);
    margin-bottom: var(--space-1);
  }

  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .menu.menu-open {
    display: flex;
  }

  .menu li,
  .menu a {
    width: 100%;
  }

  .hero,
  .three-column {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions button {
    width: 100%;
  }

  footer {
    margin-bottom: calc(var(--space-5) + 24px);
  }
}