/* =============================================
   ITCHY FEET LANDING PAGE â€” DESIGN SYSTEM
   Brand-first: every color, font, and element
   matches the app's hand-drawn travel aesthetic.
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors â€” from ItchyFeetBrandGuidelines.md */
  --color-bg: #F2EFE5;
  --color-primary: #366E6A;
  --color-primary-hover: #2D5B57;
  --color-primary-light: #4A8A85;
  --color-yellow: #D4A83A;
  --color-orange: #E8913A;
  --color-red: #D24D4D;
  --color-green-light: #A8D5BA;
  --color-card-highlight: #FDF8E8;
  --color-text: #1A1A1A;
  --color-text-secondary: #5A6B5A;
  --color-white: #FFFFFF;
  --color-cream-dark: #E8E4D8;

  /* Typography â€” brand fonts */
  --font-logo: 'Pacifico', cursive;
  --font-headers: 'Amatic SC', cursive;
  --font-body: 'Handlee', cursive;
  --font-labels: 'Quicksand', sans-serif;

  /* Spacing & Sizing */
  --radius-card: 14px;
  --radius-button: 50px;
  --max-width: 900px;
  --section-padding: 3rem 1.5rem;
  --section-padding-mobile: 2rem 1rem;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

/* ---------- Section Titles (Amatic SC) ---------- */
.section-title {
  font-family: var(--font-headers);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  letter-spacing: 1px;
}

/* ---------- Footprint Divider ---------- */
.footprint-divider {
  width: 100%;
  height: 55px;
  position: relative;
  overflow: hidden;
  opacity: 0.35;
  margin: 3rem 0 0.5rem 0;
}

.footprint-divider img {
  position: absolute;
  width: 40px;
  height: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-labels);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2.8rem;
  border-radius: var(--radius-button);
  box-shadow: 0 4px 15px rgba(54, 110, 106, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(54, 110, 106, 0.4);
  color: var(--color-white);
}

.btn-primary:active {
  transform: translateY(0);
}

/* CTA pulse animation */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(54, 110, 106, 0.3);
  }

  50% {
    box-shadow: 0 4px 25px rgba(54, 110, 106, 0.5);
  }
}

#hero-cta {
  animation: pulse 3s ease-in-out infinite;
}

#hero-cta:hover {
  animation: none;
}

/* =============================================
   NAVIGATION BAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-cream-dark);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 85px;
  width: auto;
  transition: transform 0.3s;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.03);
}

.btn-nav {
  padding: 0.65rem 1.6rem;
  font-size: 0.85rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero-tagline {
  font-family: var(--font-headers);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  max-width: 700px;
}

.hero-apps-merge {
  width: 100%;
  max-width: 520px;
  margin: 1.2rem auto 0.45rem;
  height: 136px;
}

.merge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}



.app-icon {
  transform-box: fill-box;
  transform-origin: center;
}


.box-word {
  font-family: var(--font-labels);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-anchor: start;
}

.jump-app {
  animation-duration: 7s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.46, 0, 0.24, 1);
  opacity: 1;
}

.app-l1 {
  animation-name: jumpL1;
}

.app-l2 {
  animation-name: jumpL2;
}

.app-l3 {
  animation-name: jumpL3;
}

.app-r1 {
  animation-name: jumpR1;
}

.app-r2 {
  animation-name: jumpR2;
}

.app-r3 {
  animation-name: jumpR3;
}

.box-bottom-shadow {
  fill: rgba(125, 89, 53, 0.38);
  filter: blur(0.8px);
}

.itchy-box {
  transform-origin: 250px 86px;
  animation: boxCatchPulse 7s infinite ease-in-out;
}

@keyframes jumpL1 {

  0%,
  8% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  14% {
    transform: translate(106px, -98px) scale(0.95);
    opacity: 1;
  }

  18% {
    transform: translate(179px, -56px) scale(0.78);
    opacity: 1;
  }

  20% {
    transform: translate(179px, -24px) scale(0.15);
    opacity: 0;
  }

  21%,
  86% {
    transform: translate(179px, -24px) scale(0.15);
    opacity: 0;
  }

  87% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }

  92%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes jumpL2 {

  0%,
  16% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  22% {
    transform: translate(82px, -60px) scale(0.95);
    opacity: 1;
  }

  26% {
    transform: translate(138px, -18px) scale(0.78);
    opacity: 1;
  }

  28% {
    transform: translate(138px, 14px) scale(0.15);
    opacity: 0;
  }

  29%,
  86% {
    transform: translate(138px, 14px) scale(0.15);
    opacity: 0;
  }

  87% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }

  92%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes jumpL3 {

  0%,
  24% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  30% {
    transform: translate(58px, -98px) scale(0.95);
    opacity: 1;
  }

  34% {
    transform: translate(97px, -56px) scale(0.78);
    opacity: 1;
  }

  36% {
    transform: translate(97px, -24px) scale(0.15);
    opacity: 0;
  }

  37%,
  86% {
    transform: translate(97px, -24px) scale(0.15);
    opacity: 0;
  }

  87% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }

  92%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes jumpR1 {

  0%,
  32% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  38% {
    transform: translate(-56px, -98px) scale(0.95);
    opacity: 1;
  }

  42% {
    transform: translate(-95px, -56px) scale(0.78);
    opacity: 1;
  }

  44% {
    transform: translate(-95px, -24px) scale(0.15);
    opacity: 0;
  }

  45%,
  86% {
    transform: translate(-95px, -24px) scale(0.15);
    opacity: 0;
  }

  87% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }

  92%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes jumpR2 {

  0%,
  40% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  46% {
    transform: translate(-81px, -60px) scale(0.95);
    opacity: 1;
  }

  50% {
    transform: translate(-136px, -18px) scale(0.78);
    opacity: 1;
  }

  52% {
    transform: translate(-136px, 14px) scale(0.15);
    opacity: 0;
  }

  53%,
  86% {
    transform: translate(-136px, 14px) scale(0.15);
    opacity: 0;
  }

  87% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }

  92%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes jumpR3 {

  0%,
  48% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  54% {
    transform: translate(-106px, -98px) scale(0.95);
    opacity: 1;
  }

  58% {
    transform: translate(-179px, -56px) scale(0.78);
    opacity: 1;
  }

  60% {
    transform: translate(-179px, -24px) scale(0.15);
    opacity: 0;
  }

  61%,
  86% {
    transform: translate(-179px, -24px) scale(0.15);
    opacity: 0;
  }

  87% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }

  92%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes boxCatchPulse {

  0%,
  18% {
    transform: translateY(0) scale(1);
  }

  20%,
  28%,
  36%,
  44%,
  52%,
  60% {
    transform: translateY(2px) scale(1.03);
  }

  23%,
  31%,
  39%,
  47%,
  55%,
  63%,
  100% {
    transform: translateY(0) scale(1);
  }
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin-bottom: 0.5rem;
}

.hero-domain {
  font-family: var(--font-labels);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  letter-spacing: 2px;
  text-transform: lowercase;
  margin-top: 0.8rem;
  opacity: 0.6;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.about-text {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* =============================================
   PROBLEM SECTION (PAS)
   ============================================= */
.problem {
  padding-top: 4rem;
  padding-bottom: 1.5rem;
}

.problem-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  border: 2px solid var(--color-cream-dark);
  position: relative;
  text-align: center;
}

/* Tape strip decoration */
.problem-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 30px;
  width: 60px;
  height: 22px;
  background: var(--color-yellow);
  opacity: 0.6;
  transform: rotate(-5deg);
  border-radius: 2px;
}

.problem-card::after {
  content: '';
  position: absolute;
  top: -6px;
  right: 40px;
  width: 50px;
  height: 20px;
  background: var(--color-orange);
  opacity: 0.5;
  transform: rotate(3deg);
  border-radius: 2px;
}

.problem-scene {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  font-style: italic;
}

.problem-agitate {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.2rem;
}

.problem-solution {
  font-family: var(--font-headers);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.features-category-title {
  font-family: var(--font-headers);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 4.5rem auto 1.5rem;
  padding: 0.2rem 1.5rem;
  border-radius: 6px;
  display: table;
  letter-spacing: 2px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.12);
}

.features-category-title:nth-of-type(1) {
  margin-top: 2rem;
  background-color: var(--color-orange);
  transform: rotate(-2deg);
}

.features-category-title:nth-of-type(2) {
  background-color: var(--color-primary);
  transform: rotate(1.5deg);
}

.features-category-title:nth-of-type(3) {
  background-color: var(--color-red);
  transform: rotate(-1.5deg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.features-grid--limited {
  grid-template-columns: repeat(auto-fit, minmax(260px, 346px));
  justify-content: center;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 2px solid var(--color-cream-dark);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.feature-phone {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.feature-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-phone img {
  transform: scale(1.04);
}

.feature-info {
  padding: 1.2rem 1.5rem 1.5rem;
}

.feature-label {
  font-family: var(--font-headers);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.feature-info p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* =============================================
   MID-PAGE CTA
   ============================================= */
.mid-cta {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-card-highlight) 50%, var(--color-bg) 100%);
}

.mid-cta-sub {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* =============================================
   ORIGIN STORY
   ============================================= */
.story {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.story-text {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 550px;
  margin: 0 auto 0.8rem;
}

.story-text strong {
  color: var(--color-text);
}

.story-founders {
  font-family: var(--font-logo);
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* =============================================
   WAITLIST SIGNUP
   ============================================= */
.signup {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 5rem;
  background: var(--color-primary);
  color: var(--color-white);
}

.signup .section-title {
  color: var(--color-white);
}

.signup-sub {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.premium-offer {
  display: inline-block;
  background-color: var(--color-yellow);
  color: var(--color-text);
  font-family: var(--font-headers);
  font-size: 1.8rem;
  padding: 0.1rem 0.8rem;
  margin-left: 0.3rem;
  border-radius: 5px;
  transform: rotate(-1deg);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
  font-weight: 700;
  vertical-align: middle;
}

.signup-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

#email-input {
  flex: 1;
  padding: 1rem 1.3rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-button);
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#email-input::placeholder {
  color: #999;
}

#email-input:focus {
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(212, 168, 58, 0.3);
}

.signup .btn-primary {
  background: var(--color-yellow);
  color: var(--color-text);
  white-space: nowrap;
  padding: 1rem 2rem;
  box-shadow: 0 4px 15px rgba(212, 168, 58, 0.3);
}

.signup .btn-primary:hover {
  background: #C49A2E;
  box-shadow: 0 6px 20px rgba(212, 168, 58, 0.4);
}

.form-error {
  color: #FFB4B4;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  font-family: var(--font-labels);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(26, 26, 26, 0.3);
  border-top-color: var(--color-text);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success bubble */
.success-bubble {
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  animation: bubblePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid var(--color-white);
}

.success-bubble p {
  font-family: var(--font-headers);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.success-sub {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

@keyframes bubblePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.privacy-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.5rem;
  font-family: var(--font-labels);
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.faq-list {
  max-width: 650px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 2px solid var(--color-cream-dark);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: var(--color-primary);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-labels);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

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

.faq-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.faq-chevron {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  transition: transform 0.3s;
  font-weight: 300;
}

.faq-item[open] .faq-chevron {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 1.3rem 1.2rem;
  padding-left: calc(1.3rem + 1.3rem + 0.8rem);
  /* icon + gap */
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer-brand {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--color-white);
}

.footer-copy {
  font-family: var(--font-labels);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-labels);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-white);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hero always visible */
.hero {
  opacity: 1;
  transform: none;
}

/* =============================================
   POLICY PAGE STYLES - TRAVEL NOTEBOOK AESTHETIC
   ============================================= */
.policy-page {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.policy-page.section {
  opacity: 1;
  transform: none;
}

.policy-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 4rem 3.5rem;
  max-width: 850px;
  margin: 0 auto;
  border: 2px solid var(--color-cream-dark);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

/* Tape strip decoration at the top */
.policy-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 140px;
  height: 28px;
  background: var(--color-orange);
  opacity: 0.65;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

/* -- Header area -- */
.policy-updated {
  text-align: center;
  font-family: var(--font-labels);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  display: block;
  margin: -0.5rem auto 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.6;
}

.policy-intro {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  text-align: center;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.policy-back-link {
  display: table;
  margin: 0 auto 3rem;
  font-family: var(--font-labels);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: color 0.3s, transform 0.3s;
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
}

.policy-back-link:hover {
  color: var(--color-primary-hover);
  transform: translateX(-5px);
  background-color: var(--color-bg);
  border-color: var(--color-cream-dark);
}

/* -- Table of Contents (Sticky Note Style) -- */
.policy-toc {
  background: var(--color-card-highlight);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: 3.5rem;
  border: 2px dashed var(--color-yellow);
  position: relative;
  transform: rotate(0.5deg);
}

.policy-toc:hover {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.policy-toc-title {
  font-family: var(--font-headers);
  font-size: 2.2rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(212, 168, 58, 0.3);
  /* Subtle yellow line */
  padding-bottom: 0.5rem;
  display: inline-block;
}

.policy-toc-list {
  columns: 2;
  column-gap: 3rem;
  padding-left: 1.2rem;
}

.policy-toc-list li {
  font-family: var(--font-labels);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  break-inside: avoid;
  color: var(--color-text-secondary);
}

.policy-toc-list a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}

.policy-toc-list a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -- Policy Sections -- */
.policy-item {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 2px dashed var(--color-cream-dark);
  scroll-margin-top: 100px;
}

.policy-item:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.policy-icon {
  margin-right: 0.5rem;
  font-size: 1.4rem;
  opacity: 0.9;
}

.policy-subtitle {
  font-family: var(--font-headers);
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.policy-item p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.policy-item p:last-child {
  margin-bottom: 0;
}

.policy-item strong {
  color: var(--color-text);
  font-weight: 600;
}

.policy-item ul {
  margin: 1.2rem 0 1.2rem 1.8rem;
  color: var(--color-text-secondary);
}

.policy-item li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.policy-item a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.policy-item a:hover {
  color: var(--color-primary-hover);
}

/* -- Third-party table -- */
.policy-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

.policy-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-labels);
  font-size: 0.95rem;
  border: 2px solid var(--color-cream-dark);
  border-radius: 12px;
  overflow: hidden;
}

.policy-table th {
  background: var(--color-primary-light);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.policy-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-cream-dark);
  color: var(--color-text-secondary);
  background: var(--color-white);
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table tr:hover td {
  background: var(--color-bg);
}

.policy-table a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.policy-table a:hover {
  text-decoration: underline;
}

/* -- Footer area -- */
.policy-footer {
  margin-top: 2rem;
  padding-top: 3rem;
  border-top: 3px double var(--color-cream-dark);
  text-align: center;
}

.policy-contact-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 2rem 3rem;
  display: inline-block;
  margin-bottom: 2rem;
  border: 2px solid var(--color-cream-dark);
  transform: rotate(-1deg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.policy-contact-title {
  font-family: var(--font-headers);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.policy-contact-card p {
  font-family: var(--font-labels);
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.4rem;
}

.policy-contact-card a {
  color: var(--color-primary);
  font-weight: 700;
}

.policy-footer-note {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  font-style: italic;
  font-family: var(--font-body);
}

/* =============================================
   RESPONSIVE — Mobile First 
   ============================================= */
@media (max-width: 640px) {
  .section {
    padding: var(--section-padding-mobile);
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .nav-logo-img {
    height: 50px;
  }

  .btn-nav {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-row {
    flex-direction: column;
  }

  .signup .btn-primary {
    width: 100%;
  }

  .problem-card {
    padding: 2rem 1.5rem;
  }

  .problem-card::before,
  .problem-card::after {
    display: none;
  }

  /* Policy page mobile */
  .policy-card {
    padding: 2rem 1.2rem;
  }

  .policy-toc-list {
    columns: 1;
  }

  .policy-item {
    padding: 1rem;
    padding-left: 1.2rem;
  }

  .policy-table {
    font-size: 0.8rem;
  }

  .policy-table th,
  .policy-table td {
    padding: 0.5rem 0.6rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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