:root {
  --maxw: 1200px;

  --bg: #f6f3ee;
  --paper: rgba(255,255,255,.66);
  --paper-strong: rgba(255,255,255,.82);
  --stroke: rgba(35, 40, 45, .10);
  --stroke-strong: rgba(35, 40, 45, .16);

  --text: #22272b;
  --muted: rgba(34, 39, 43, .72);
  --muted-2: rgba(34, 39, 43, .58);

  --brand: #2f79a5;
  --brand-2: #2a6b92;
  --brand-soft: rgba(47, 121, 165, .14);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-lg: 0 18px 44px rgba(0,0,0,.10);
  --shadow-md: 0 10px 28px rgba(0,0,0,.08);
  --shadow-sm: 0 8px 18px rgba(0,0,0,.06);

  --pad-1: 12px;
  --pad-2: 18px;
  --pad-3: 26px;
  --pad-4: 38px;
  --pad-5: 58px;

  --h1: clamp(28px, 3.4vw, 40px);
  --h2: clamp(26px, 3.1vw, 38px);
  --h3: clamp(18px, 2.0vw, 24px);
  --body: clamp(15px, 1.3vw, 17px);

  --font-ui: system-ui, -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mark: "MarkerFelt-Wide", "Marker Felt", "MarkerFelt", "Bradley Hand", cursive;

  --map-bg-url: url("./images/background/cloudymapbg_v1.jpg");
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.grecaptcha-badge { visibility: hidden; } 

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Background */
.bg-map {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: var(--map-bg-url);
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: auto 100vh;
  opacity: 0.35;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
}

main,
footer {
  position: relative;
  z-index: 2;
}

/* Layout */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-3);
}

main { padding-top: 86px; }
[id] { scroll-margin-top: 90px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;

  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.35);
}

.header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.brand-name {
  font-family: var(--font-mark);
  font-size: 22px;
  letter-spacing: .2px;
  line-height: 1;
  white-space: nowrap;
}

.brand-tag {
  display: block;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin-left: auto;
  justify-content: flex-end;
  position: relative; /* anchors dropdown */
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.nav a:hover {
  text-decoration: none;
  background: rgba(255,255,255,.55);
  color: var(--text);
}

.nav-toggle { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.35);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  user-select: none;
}

.menu-toggle:hover { background: rgba(255,255,255,.55); text-decoration: none; }
.menu-toggle:active { transform: translateY(1px); }

.menu-icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.menu-icon::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(34,39,43,.70);
  box-shadow: 0 5px 0 rgba(34,39,43,.70), 0 10px 0 rgba(34,39,43,.70);
}

.menu-text { display: inline; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(47,121,165,1), rgba(42,107,146,1));
  color: white;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 14px 28px rgba(47,121,165,.22);
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}

.cta:hover { text-decoration: none; filter: brightness(1.02); }
.cta:active { transform: translateY(1px); }

.appstore-badge {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 0;
}

.cta.cta-badge {
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: none;
}

.cta.cta-badge:hover { background: rgba(255,255,255,.35); }

/* Hero + shared UI */
.section { padding: var(--pad-5) 0; }
.section + .section { padding-top: 0; }

.panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.62));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--map-bg-url);
  background-size: cover;
  background-position: center;
  opacity: .08;
  pointer-events: none;
  transform: translateY(-6px);
}

.panel-inner {
  position: relative;
  padding: var(--pad-5);
}

.kicker {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1, h2, h3 { margin: 0 0 12px 0; }
h1 { font-size: var(--h1); letter-spacing: -.02em; }
h2 { font-size: var(--h2); letter-spacing: -.02em; }
h3 { font-size: var(--h3); letter-spacing: -.01em; }

p {
  margin: 0 0 12px 0;
  font-size: var(--body);
  line-height: 1.55;
  color: var(--muted);
}

.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted-2); }
.center { text-align: center; }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-sm);
  font-weight: 650;
  font-size: 14px;
  color: var(--text);
}

.btn:hover { text-decoration: none; background: rgba(255,255,255,.78); }

.btn.primary {
  background: linear-gradient(180deg, rgba(47,121,165,1), rgba(42,107,146,1));
  border: 1px solid rgba(255,255,255,.18);
  color: white;
}

.btn.primary:hover { filter: brightness(1.02); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.60);
  color: var(--muted);
  font-size: 13px;
}

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

.grid { display: grid; gap: 26px; }
.grid.two { grid-template-columns: 1.1fr .9fr; align-items: center; }
.grid.two.reverse { grid-template-columns: .9fr 1.1fr; }

.floaty {
  transform: translateY(-4px);
  transition: transform 600ms ease;
}

/* Hero */
.hero { padding-top: 26px; }

.hero-card {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 18px;
}

.hero-copy h1 { margin-bottom: 10px; }
.hero-copy p { max-width: 52ch; }

.hero-badges {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.phone {
  width: min(360px, 100%);
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.72);
  box-shadow: 0 26px 60px rgba(0,0,0,.16);
  position: relative;
  overflow: hidden;
  transform: rotate(2deg);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0)),
    radial-gradient(520px 260px at 70% 30%, rgba(47,121,165,.12), rgba(47,121,165,0) 60%);
}

.phone-notch {
  position:absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 24px;
  border-radius: 0 0 16px 16px;
  background: rgba(0,0,0,.10);
  opacity: .6;
}

.phone-screenshot {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: cover;
  object-position: center top;
  border-radius: 26px;
}

.phone-label {
  position:absolute;
  bottom: 18px;
  left: 24px;
  right: 24px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 13px;
}

.polaroids {
  position:absolute;
  right: 270px;
  top: 120px;
  display: grid;
  gap: 10px;
}

.polaroid {
  --polaroid-img: none;
  width: 140px;
  height: 118px;
  border-radius: 14px;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
  position: relative;
  overflow: hidden;
}

html[dir="rtl"] .polaroids {
  right: auto;
  left: 270px;
}

html[dir="rtl"] .polaroid:nth-child(2) {
  transform: rotate(5deg) translateX(-14px);
}

.polaroid:nth-child(2) { transform: rotate(5deg) translateX(14px); }

.polaroid::before {
  content:"";
  position:absolute;
  inset: 10px 10px 32px 10px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(47,121,165,.18), rgba(47,121,165,0) 60%),
    var(--polaroid-img);
  background-size: cover;
  background-position: center;
}

.polaroid::after {
  content: attr(data-label);
  position:absolute;
  left: 12px;
  bottom: 10px;
  font-size: 12px;
  color: var(--muted-2);
}

/* Images */
.feature-image,
.why-image,
.phone-screenshot {
  border: 6px solid rgba(255,255,255,.92);
  background: rgba(255,255,255,.92);
  box-shadow:
    0 6px 18px rgba(0,0,0,.10),
    0 2px 6px rgba(0,0,0,.06);
}

.why-image {
  width: min(360px, 100%);
  height: auto;
  border-radius: 18px;
  display: block;
  margin-bottom: 18px;
}

/* Feature rows */
.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.feature-row {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.feature-row::before {
  content:"";
  position:absolute;
  inset: 0;
  background-image: var(--map-bg-url);
  background-size: cover;
  background-position: center;
  opacity: .06;
  pointer-events: none;
}

.feature-row-inner {
  position: relative;
  padding: 26px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: center;
}

.feature-row:nth-child(even) .feature-row-inner {
  grid-template-columns: .95fr 1.05fr;
}

.feature-copy h3 { margin-bottom: 8px; }
.feature-copy p { margin-bottom: 0; }

.feature-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 170px;
}

.feature-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 18px;
  display: block;
}


.stacked-images {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end; 
}

.stacked-images .stacked {
  width: 100%;
  height: auto;
  border-radius: 18px; 
  position: relative;  
}

.stacked-back {
  transform: rotate(-2deg) translateX(10px);
  z-index: 1;
  box-shadow:
    0 4px 12px rgba(0,0,0,.08),
    0 1px 4px rgba(0,0,0,.05);
}

.stacked-front {
  z-index: 2;
  transform: rotate(2deg) translateX(-10px);
  margin-top: -36px; 
}


/* FAQ */
.faq { max-width: 920px; margin: 0 auto; }

details {
  border-bottom: 1px solid var(--stroke);
  padding: 14px 0;
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 650;
  color: var(--text);
  font-size: 16px;
  padding: 10px 0;
}

summary::-webkit-details-marker { display: none; }

.chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(34,39,43,.55);
  border-bottom: 2px solid rgba(34,39,43,.55);
  transform: rotate(45deg);
  transition: transform .18s ease;
  flex: 0 0 auto;
  margin-right: 2px;
}

details[open] .chev { transform: rotate(-135deg); margin-top: 4px; }

.answer { padding: 0 0 12px 0; }
.answer p { margin: 0; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.64);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.card h3 { margin: 0 0 8px 0; }
.card p { margin: 0 0 12px 0; }

.price {
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -.02em;
  margin: 10px 0 10px 0;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.card ul li { margin: 6px 0; }

/* Contact form */
form {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  display: block;
  margin: 0 0 6px 0;
}

input, textarea, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255,255,255,.70);
  outline: none;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
}

textarea { min-height: 120px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  border-color: rgba(47,121,165,.45);
  box-shadow: 0 0 0 4px rgba(47,121,165,.12);
}

/* Footer */
footer {
  padding: 26px 0 40px 0;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--stroke);
  padding-top: 18px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--muted-2); }

.language-switcher {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.language-switcher a {
  text-decoration: none;
}

.language-switcher a:hover {
  text-decoration: underline;
}


/* Section-specific consistency */
#what .btn-row,
#future .btn-row { justify-content: center; }

/* Privacy pills (aligned dash column) */
#privacy .privacy-pill {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 14px;
  align-items: start;
  text-align: left;
  padding: 10px 14px;
}

#privacy .privacy-pill .pill-title {
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

#privacy .privacy-pill .pill-desc {
  color: var(--muted);
  line-height: 1.35;
  position: relative;
  padding-left: 14px;
}

#privacy .privacy-pill .pill-desc::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* Responsive */
@media (min-aspect-ratio: 3/2) {
  .bg-map { background-size: 100vw auto; }
}

@media (prefers-reduced-motion: reduce) {
  .floaty { transition: none; transform: none; }
  .bg-map { background-attachment: scroll; }
}

/* Header only — earlier switch to menu toggle */
@media (max-width: 1020px) {

  .nav { display: none; }

  .menu-toggle { display: inline-flex; }

  .menu-text { display: inline; }

}

/* Hide hero polaroids slightly earlier to avoid text overlap */
@media (max-width: 1050px) {
  .polaroids { display: none; }
}


@media (max-width: 920px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-visual { justify-content: center; }
  .polaroids { display: none; }

  .grid.two, .grid.two.reverse { grid-template-columns: 1fr; }
  .panel-inner { padding: 34px; }

  .feature-row-inner { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-row-inner { grid-template-columns: 1fr; }
  .feature-visual { justify-content: center; }
  
  .stacked-images {
      margin: 0 auto;
      align-items: center;
    }

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

  .feature-row-inner { display: flex; flex-direction: column; }
  .feature-copy { order: 1; }
  .feature-visual,
  .feature-row-inner > img.feature-image { order: 2; }

  .feature-row-inner > img.feature-image {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy { text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-badges { justify-content: center; }

  #why .grid > div:first-child { text-align: center; }
  #why .grid > div:first-child p { margin-left: auto; margin-right: auto; }
  #why .btn-row { justify-content: center; }
  #why .why-image { margin-bottom: 22px; }

  #privacy .grid > div:first-child { text-align: center; }
  #privacy .grid > div:first-child p { margin-left: auto; margin-right: auto; }
  #privacy .btn-row { justify-content: center; }
  #privacy .card, #privacy .card * { text-align: left; }

  /* Header: switch to toggle w/ text */
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .menu-text { display: inline; }

  .nav-toggle:checked ~ .nav.nav-links {
    display: grid;
    gap: 6px;

    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    padding: 12px;
    border-radius: 16px;

    background: rgba(255,255,255,.96);
    border: 1px solid rgba(35, 40, 45, .14);
    box-shadow: var(--shadow-lg);
  }

  .nav.nav-links a {
    font-size: 15px;
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.78);
  }
  .nav.nav-links a:hover { background: rgba(255,255,255,.90); }
}

@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 16px; }

    .brand{
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }
    
    .logo-img{
      height: 42px;
    }
    
    .brand > span{
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    
    .brand-name{
      font-size: 18px;
      line-height: 1.0;
      text-align: left;
      white-space: nowrap;
    }
    
    .brand-tag{
      display: block;
      line-height: 1.15;
      text-align: left;
      white-space: normal;
    }

    .header-actions { gap: 10px; }

    .cta.cta-badge {
        padding: 10px;
        height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .menu-text { display: none; }
    .menu-toggle {
        height: 44px;
        padding: 10px;
    }
}

@media (max-width: 520px) {
  .panel-inner { padding: 22px; }
  .section { padding: 34px 0; }
}
