.banner-mobile,
.subline-mobile {
  display: none;
}

/* Hero background — covers the entire above-the-fold section */
.hero {
  background-image: url("../img/landing_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* top-left aligned content */
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding: 110px 48px 48px;
}

.hero-content {
  align-items: flex-start;
}

.hero-subline {
  margin: 0 0 48px;
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  color: #ffffff;
}

/* Caveat — hero text and all headings (incl. below the fold) */
.hero-headline,
.mission-heading,
.timeline-title,
.feature-card h3,
.contact-heading {
  font-family: "Caveat", cursive;
}

body.landing .hero-subline,
body.landing .hero-subline span {
  font-family: "Caveat", cursive;
  font-weight: 500;
}

body.landing .hero-tagline {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1.5px;
  /* frosted capsule over the sky */
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

body.landing .hero-headline {
  font-weight: 600;
  line-height: 1.15;
  /* flat white (drop the gradient clip) */
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #ffffff;
  background-clip: border-box;
  color: #ffffff;
}

.mission-heading {
  font-weight: 600;
}

.timeline-title {
  font-weight: 600;
}

.feature-card h3 {
  font-weight: 600;
  font-size: 1.25rem;
}

.contact-heading {
  font-weight: 600;
}

/* Navbar — smaller + translucent glass.
   Above-the-fold stays dark even in light theme (it sits over the hero bg image). */
.navbar {
  padding: 12px 48px;
  background: color-mix(in srgb, oklch(0% 0 0) 55%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.landing .navbar .nav-link {
  color: #ffffff;
}

body.landing .navbar .nav-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.landing .navbar .logo {
  font-size: 1.2rem;
  /* flat white (drop the gradient clip) */
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #ffffff;
  background-clip: border-box;
  color: #ffffff;
}

body.landing .footer-logo {
  /* flat solid (drop the gradient clip) */
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: var(--text);
  background-clip: border-box;
  color: var(--text);
}

.navbar .nav-link {
  font-size: 0.9rem;
}

.landing-form {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  max-width: 600px;
}

.landing-form .landing-input {
  flex: 1 1 auto;
  /* beat global input { width: 100% } — otherwise it claims the whole row */
  width: auto;
  min-width: 220px;
}

.landing-form .landing-btn {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

.landing-input {
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  transition: all 0.3s ease;
  height: auto;
}

.landing-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.landing-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.45);
}

/* body.landing prefix beats the global button[type="submit"] rule (gradient bg, width/height) */
body.landing .landing-btn {
  align-self: auto;
  width: auto;
  height: auto;
  padding: 14px 28px;
  background: #ffffff;
  color: #1a1a1a;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.landing .landing-btn:hover {
  transform: translateY(-2px);
  /* filter: none kills the global button:hover purple glow */
  filter: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

body.landing .landing-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-footer-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 8px;
  text-align: left;
}

.form-footer-text .disclaimer-link {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.6);
}

.form-footer-text .disclaimer-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

#website {
  position: absolute;
  left: -9999px;
}

.footer {
  padding: 40px 48px 32px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-size: 1.15rem;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: #000000;
}

.footer-copy {
  font-size: 0.75rem;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #000000;
}

/* back-to-top — black circle, white arrow */
body.landing .back-to-top {
  background: #111111;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 12px;
}

body.landing .back-to-top:hover {
  transform: translateY(-3px);
  filter: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

body.landing .back-to-top i {
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
}

.footer-disclaimer {
  max-width: 1200px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .banner-desktop,
  .subline-desktop {
    display: none;
  }

  .banner-mobile,
  .subline-mobile {
    display: inline;
  }

  .navbar {
    padding: 10px 20px;
  }

  .footer {
    padding: 32px 24px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    align-items: flex-start;
  }
}

/* once the button can't fit beside the input (~556px), stack them full-width */
@media (max-width: 556px) {
  .landing-form {
    flex-direction: column;
  }
  .landing-form .landing-input,
  .landing-form .landing-btn {
    min-width: 100%;
    width: 100%;
  }
}

.contact-section {
  padding: 80px 48px;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================
   Contact — envelope that takes your message
   ============================================ */

/* the envelope — paper sheet left slightly askew on the desk */
body.landing .contact-inner {
  position: relative;
  background: #f4eeda;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  padding: 116px 48px 56px; /* top clears the flap */
  transform: rotate(-0.4deg);
  max-width: 620px;
}

/* the flap — triangle folded down from the top edge */
body.landing .contact-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  background: #e9dfc2;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* a little postage stamp stuck on the flap corner */
body.landing .contact-inner::after {
  content: "\2709"; /* ✉ */
  position: absolute;
  top: 14px;
  right: 24px;
  width: 50px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  border: 2px dashed rgba(125, 95, 45, 0.6);
  border-radius: 4px;
  color: var(--amber-soft);
  font-size: 1.4rem;
  line-height: 1;
  transform: rotate(5deg);
}

body.landing .contact-heading {
  display: inline-block;
  position: relative;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

/* marker swipe under the heading */
body.landing .contact-heading::after {
  content: "";
  display: block;
  width: 96%;
  height: 10px;
  margin: 8px auto 0;
  background: rgba(58, 47, 26, 0.13);
  border-radius: 6px;
  transform: rotate(-1.2deg);
}

body.landing .contact-sub {
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

/* the letter inside — ruled paper carrying the form */
body.landing .contact-form {
  align-items: stretch;
  justify-content: flex-start;
  gap: 14px;
  background-color: #fffef9;
  background-image: linear-gradient(rgba(90, 90, 105, 0.14) 1px, transparent 1px);
  background-size: 100% 30px;
  border: 1px solid rgba(125, 100, 60, 0.25);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 28px 28px 26px;
  transform: rotate(1.2deg);
}

/* fields drawn straight onto the letter lines — no boxes */
body.landing .contact-input,
body.landing .contact-textarea {
  /* normal form font again (Outfit) — same as the sign-in input */
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(90, 90, 105, 0.45);
  border-radius: 0;
  padding: 8px 6px;
  color: #2f2a1e;
}

body.landing .contact-input::placeholder,
body.landing .contact-textarea::placeholder {
  color: rgba(90, 90, 105, 0.5);
}

body.landing .contact-input:focus,
body.landing .contact-textarea:focus {
  border-bottom-color: var(--amber-soft);
}

/* keep the white send button visible on the letter paper */
body.landing .contact-btn {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 600px) {
  body.landing .contact-inner {
    padding: 96px 26px 44px;
    transform: none;
  }

  body.landing .contact-inner::before {
    height: 76px;
  }

  body.landing .contact-inner::after {
    top: 10px;
    right: 14px;
    width: 44px;
    height: 50px;
    font-size: 1.2rem;
  }

  body.landing .contact-form {
    padding: 22px 18px 20px;
    transform: none;
  }

  body.landing .contact-sub {
    font-size: 1.3rem;
  }
}

/* ============================================
   Feature cards — sticky notes on a wall
   ============================================ */
.features-grid {
  gap: 44px;
}

body.landing .feature-card {
  position: relative;
  background: #fef9c3; /* classic sticky-note yellow */
  border: none;
  border-radius: 8px;
  padding: 38px 28px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* little piece of tape holding each note up */
body.landing .feature-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 84px;
  height: 22px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%) rotate(-3deg);
}

/* natural, imperfect rotations — like notes stuck by hand */
body.landing .feature-card:nth-child(1) {
  transform: rotate(-2.5deg);
}

body.landing .feature-card:nth-child(2) {
  transform: rotate(1.5deg);
}

body.landing .feature-card:nth-child(3) {
  transform: rotate(-1deg);
}

body.landing .feature-card:nth-child(2)::before {
  transform: translateX(-50%) rotate(2deg);
}

body.landing .feature-card:nth-child(3)::before {
  transform: translateX(-50%) rotate(-1.5deg);
}

/* hover: straighten out + lift, like picking the note up */
body.landing .feature-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

body.landing .feature-card i {
  color: var(--amber);
}

body.landing .feature-card h3 {
  color: #422006;
  font-size: 1.25rem;
}

body.landing .feature-card p {
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #713f12;
}

@media (max-width: 600px) {
  body.landing .feature-card:nth-child(1) {
    transform: rotate(-1.5deg);
  }

  body.landing .feature-card:nth-child(2) {
    transform: rotate(1deg);
  }

  body.landing .feature-card:nth-child(3) {
    transform: rotate(-0.75deg);
  }
}

/* ============================================
   Under the hood — whiteboard theme
   ============================================ */
body.landing .timeline-section {
  padding: 40px 48px 120px;
}

body.landing .timeline-inner {
  background-color: #f8f4e8; /* warm notebook paper */
  /* ruled notebook lines — horizontal only */
  background-image: linear-gradient(rgba(90, 90, 105, 0.28) 1px, transparent 1px);
  background-size: 100% 30px;
  border: none;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  max-width: 960px;
  padding: 64px 60px 72px;
  text-align: center;
  position: relative;
  transform: rotate(-0.3deg); /* slipped onto the desk, not aligned */
}

/* classic red margin line like a real notebook page */
body.landing .timeline-inner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46px;
  width: 1.5px;
  background: rgba(214, 93, 93, 0.5);
}

/* little piece of tape holding the paper up — same as the sticky notes */
body.landing .timeline-inner::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 26px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%) rotate(-2.5deg);
}

body.landing .timeline-title {
  display: inline-block;
  position: relative;
  font-size: 3rem;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 64px;
}

/* hand-drawn marker underline swipe */
body.landing .timeline-title::after {
  content: "";
  display: block;
  width: 96%;
  height: 10px;
  margin: 8px auto 0;
  background: rgba(28, 28, 28, 0.14);
  border-radius: 6px;
  transform: rotate(-1.5deg);
}

body.landing .timeline {
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}

/* plain handwritten numbers — no circles */
body.landing .timeline-step {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1c1c1c;
}

/* each note placed a little off the line, tilted like scribbles */
body.landing .timeline-item {
  transform-origin: left center;
}

body.landing .timeline-item:nth-child(1) {
  padding-bottom: 56px;
  transform: translateX(-14px) rotate(-0.9deg);
}

body.landing .timeline-item:nth-child(2) {
  padding-bottom: 40px;
  transform: translateX(18px) rotate(0.7deg);
}

body.landing .timeline-item:nth-child(3) {
  transform: translateX(-8px) rotate(-0.6deg);
}

body.landing .timeline-item .timeline-step {
  transform: rotate(-3deg);
}

body.landing .timeline-item:nth-child(2) .timeline-step {
  transform: rotate(2.5deg);
}

body.landing .timeline-item:nth-child(3) .timeline-step {
  transform: rotate(-2deg);
}

body.landing .timeline-text {
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.5;
  color: #2a2a2a;
}

/* ============================================
   Mission — on the same whiteboard
   ============================================ */
body.landing .mission-heading {
  display: inline-block;
  position: relative;
  font-size: 3.4rem;
  font-weight: 600;
  color: #1c1c1c;
  margin-bottom: 24px;
}

/* hand-drawn marker underline swipe */
body.landing .mission-heading::after {
  content: "";
  display: block;
  width: 96%;
  height: 10px;
  margin: 8px auto 0;
  background: rgba(28, 28, 28, 0.14);
  border-radius: 6px;
  transform: rotate(1.2deg);
}

body.landing .mission-text {
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.55;
  color: #2a2a2a;
  max-width: 640px;
  margin: 0 auto 64px;
}

/* no connector line — notes just sit there */
body.landing .timeline::before {
  content: none;
}

@media (max-width: 600px) {
  body.landing .timeline-section {
    padding: 24px 20px 80px;
  }

  body.landing .timeline-inner {
    border: none;
    padding: 40px 22px 48px;
    transform: none;
  }

  body.landing .timeline-inner::before {
    left: 20px;
  }

  body.landing .timeline-inner::after {
    top: -10px;
    width: 90px;
    height: 22px;
  }

  body.landing .mission-heading {
    font-size: 2.6rem;
  }

  body.landing .mission-text {
    font-size: 1.35rem;
    margin-bottom: 48px;
  }

  body.landing .timeline-title {
    font-size: 2.4rem;
    margin-bottom: 48px;
  }

  body.landing .timeline-text {
    font-size: 1.3rem;
  }

  body.landing .timeline-item:nth-child(1) {
    transform: translateX(-8px) rotate(-0.9deg);
  }

  body.landing .timeline-item:nth-child(2) {
    transform: translateX(8px) rotate(0.7deg);
  }

  body.landing .timeline-item:nth-child(3) {
    transform: translateX(-5px) rotate(-0.6deg);
  }
}

.contact-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

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

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--bg-light);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
  font-family: "Outfit", sans-serif;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: rgba(90, 90, 105, 0.6);
}

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

/* body.landing prefix beats the global button[type="submit"] rule (gradient bg, width/height) */
body.landing .contact-btn {
  align-self: auto;
  /* full-width again — beats global form{align-items:start} shrink */
  width: 100%;
  height: auto;
  padding: 14px 28px;
  background: #ffffff;
  color: #1a1a1a;
  border: none;
  border-radius: 12px;
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease;
}

body.landing .contact-btn:hover {
  transform: translateY(-2px);
  /* filter: none kills the global button:hover purple glow */
  filter: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

@media (max-width: 600px) {
  .contact-section {
    padding: 60px 24px;
  }
}

.disclaimer-link {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
  transition: color 0.2s ease;
}

.disclaimer-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.contact-success {
  color: var(--success);
  margin-top: 16px;
  font-size: 0.875rem;
}

.contact-error {
  color: var(--error);
  margin-top: 16px;
  font-size: 0.875rem;
}

/* ============================================
   Responsive — proportional font scaling
   Keep as-is at/above 1338×790; below that,
   shrink fonts proportionally to the viewport.
   ============================================ */
@media (max-width: 1337px), (max-height: 789px) {
  html {
    font-size: clamp(
      13px,
      16px * min(100vw / 1338px, 100vh / 790px),
      16px
    );
  }
}

/* phones have their own tuned layout — keep the original scale there */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
}

/* ============================================
   Responsive tweaks (per 790-height specs)
   ============================================ */

/* 1338×790 → 664×790: smaller, lighter headline */
@media (min-width: 665px) and (max-width: 1337px) {
  body.landing .hero-headline {
    font-family: "Caveat", cursive;
    font-size: 48px;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0px;
  }
}

/* tablet browsers: 100vh includes the hidden URL-bar zone — use the visible
   (small) viewport height so the above-the-fold section never overshoots
   the actual screen (which was pushing the form below the fold) */
body.landing .hero {
  min-height: 100vh;
  min-height: 100svh;
}

/* below 1346px: pin the sign-in form to the bottom of the visible hero */
@media (max-width: 1345px) {
  body.landing .hero-content {
    min-height: calc(100vh - 160px);
    min-height: calc(100svh - 160px);
  }

  body.landing .landing-form {
    /* global form { flex-grow: 1 } swallows the free space — kill it so
       margin-top: auto can push the form to the bottom of the hero */
    flex-grow: 0;
    margin-top: auto;
  }
}

/* at/below 1088px: drop the frosted chip — pin the subline down
   to sit just above the sign-in form (which is at the hero bottom) */
@media (max-width: 1088px) {
  body.landing .hero-subline {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 600px;
    margin: auto 0 16px 0;
  }

  body.landing .landing-form {
    margin-top: 0;
  }
}
