/* JustDateLah — Ditto-style layout; display fonts bundled from ditto.ai public static assets */

@font-face {
  font-family: spencer;
  src: url("assets/fonts/spencer.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: bitterSour;
  src: url("assets/fonts/bitterSour.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: argentPixel;
  src: url("assets/fonts/argentPixel.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050608;
  --bg-deep: #011e2c;
  --text: #f6f6f6;
  --text-dim: rgba(246, 246, 246, 0.7);
  --pink: #f748b1;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.25);
  --cta-text: #063848;
  --faq-card: rgba(1, 30, 44, 0.55);
  --font-spencer: spencer, "Segoe Script", "Apple Chancery", cursive;
  --font-timer: bitterSour, system-ui, sans-serif;
  --font-pixel: argentPixel, Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ditto-page {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #bae6fd;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Noise overlay (same technique as reference: SVG turbulence) —— */
.noise-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='9' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix type='saturate' values='0' in='noise'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='gamma' amplitude='2.4' exponent='6' offset='-0.4'/%3E%3CfeFuncG type='gamma' amplitude='2.4' exponent='6' offset='-0.4'/%3E%3CfeFuncB type='gamma' amplitude='2.4' exponent='6' offset='-0.4'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: cover;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* —— Header —— */
.ditto-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  height: 72px;
  padding: 0 1.5rem;
  background: transparent;
  user-select: none;
}

@media (min-width: 481px) {
  .ditto-header {
    height: 96px;
    padding: 0 2rem;
  }
}

@media (min-width: 1025px) {
  .ditto-header {
    padding: 0 4rem;
  }
}

.ditto-header__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-spencer);
  font-size: 1.65rem;
  line-height: 1;
}

.ditto-header__logo img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.ditto-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--glass);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-glass:hover {
  background: var(--glass-hover);
  color: var(--text);
}

/* —— Hero (full viewport) —— */
.ditto-hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: visible;
}

.ditto-hero__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100dvh;
  margin-bottom: -100dvh;
}

.ditto-hero__bg {
  position: absolute;
  inset: 0;
  background: #1a0a12 center / cover no-repeat;
  background-image: url("assets/hero-ditto-style.jpg");
}

.ditto-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.35) 0%, rgba(5, 6, 8, 0.75) 100%);
}

.ditto-hero .noise-overlay {
  z-index: 1;
}

.ditto-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100dvh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 5rem 1.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 480px) {
  .ditto-hero__inner {
    padding-top: 6rem;
  }
}

.ditto-sun {
  width: 48px;
  height: auto;
  opacity: 0.75;
  mix-blend-mode: color-dodge;
  transform: rotate(15deg);
  margin-bottom: -0.35rem;
  position: relative;
  z-index: 0;
}

.ditto-hero__title {
  margin: 0;
  font-family: var(--font-spencer);
  font-weight: 400;
  color: var(--text);
  text-shadow: 0 4.9px 4.9px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

@media (min-width: 480px) {
  .ditto-hero__title {
    text-shadow: 0 7.78px 7.78px rgba(0, 0, 0, 0.25);
  }
}

.ditto-hero__title span {
  display: block;
  line-height: 0.92;
}

.ditto-hero__title .line1 {
  font-size: clamp(2.5rem, 11vw, 4.25rem);
  white-space: nowrap;
}

.ditto-hero__title .line2 {
  font-size: clamp(2.85rem, 12vw, 4.85rem);
  white-space: nowrap;
}

@media (max-width: 380px) {
  .ditto-hero__title .line1,
  .ditto-hero__title .line2 {
    white-space: normal;
    max-width: 95vw;
  }
}

/* Hero — NUS / NTU / SMU strip */
.hero-schools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin: 1rem 0 0.25rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: min(100%, 420px);
}

.hero-schools__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
}

.hero-schools__item img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.hero-schools__item span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-schools__tagline {
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0.35rem 0 0;
}

.ditto-countdown-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 360px;
  transform-origin: center;
}

@media (min-width: 480px) {
  .ditto-countdown-wrap {
    transform: scale(0.98);
  }
}

.ditto-polaroid-zone {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.ditto-polaroid {
  width: 168px;
  max-width: 46vw;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transform: rotate(1deg);
}

.ditto-polaroid img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.ditto-heart-deco {
  position: absolute;
  right: -6px;
  top: 42%;
  width: 34px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.ditto-timer {
  margin-top: -1.85rem;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 330px;
  padding: 0 0.25rem;
  font-family: var(--font-timer);
  font-size: clamp(1.85rem, 9vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--pink);
  text-shadow: 0 0 20px rgba(247, 72, 177, 0.45), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ditto-meta {
  margin-top: -0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
}

.ditto-meta p {
  margin: 0;
}

.ditto-cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: min(calc(100vw - 4rem), 440px);
  min-height: 48px;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cta-text);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

@media (min-width: 480px) {
  .ditto-cta {
    min-height: 56px;
    font-size: 1.05rem;
  }
}

.ditto-cta:hover {
  background: rgba(255, 255, 255, 0.88);
  color: var(--cta-text);
}

.ditto-cta svg {
  flex-shrink: 0;
}

/* —— Section shell (dark bands) —— */
.ditto-section {
  position: relative;
  z-index: 5;
  padding: 3.5rem 1rem 4rem;
  background: var(--bg);
}

@media (min-width: 481px) {
  .ditto-section {
    padding: 4rem 1.5rem 6.25rem;
  }
}

.ditto-section--alt {
  background: linear-gradient(180deg, #0a1218 0%, #050608 100%);
}

.section-title-img {
  display: block;
  width: min(396px, 92vw);
  height: auto;
  margin: 0 auto 2rem;
}

@media (min-width: 1025px) {
  .section-title-img {
    width: 502px;
    margin-bottom: 1.5rem;
  }
}

/* Section titles — spencer for script; line-height for legibility */
.title-fallback {
  font-family: var(--font-spencer);
  font-size: clamp(2.15rem, 7vw, 3.35rem);
  line-height: 1.12;
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 900px;
  padding: 0 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* —— How it works: zig-zag 2×2, one viewport on desktop —— */
.section-how.ditto-section {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.75rem, 2vh, 1.5rem) 1rem clamp(1rem, 2.5vh, 1.75rem);
  box-sizing: border-box;
}

.how-section-head {
  text-align: center;
  margin: 0 0 clamp(0.5rem, 1.5vh, 1rem);
  flex-shrink: 0;
}

.how-title-box {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 1.35rem;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 2px;
  font-family: var(--font-pixel);
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.how-title-part {
  color: #fff;
}

.how-title-accent {
  color: var(--pink);
}

.how-zigzag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(0.4rem, 1.2vh, 0.75rem) clamp(0.75rem, 2vw, 1.5rem);
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
  flex: 1;
  min-height: 0;
}

.how-card--1 {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.how-card--2 {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.how-card--3 {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

.how-card--4 {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.how-card {
  width: 100%;
  max-width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.how-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem 0.35rem;
}

.how-card__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-card--1 .how-card__num {
  background: #e8c82e;
  color: #141414;
}

.how-card--2 .how-card__num {
  background: #f748b1;
  color: #fff;
}

.how-card--3 .how-card__num {
  background: #e8c82e;
  color: #141414;
}

.how-card--4 .how-card__num {
  background: #5ecfff;
  color: #0a1620;
}

.how-card__head h3 {
  margin: 0;
  font-family: var(--font-spencer);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.18;
  text-align: left;
}

.how-card p {
  margin: 0;
  padding: 0 0.75rem 0.45rem;
  color: var(--text-dim);
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  font-family: var(--font-sans);
  line-height: 1.45;
}

.how-card__img-wrap {
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}

.how-card__img {
  display: block;
  width: 100%;
  height: clamp(88px, 14vh, 150px);
  object-fit: cover;
}

.how-card--2 .how-card__head,
.how-card--4 .how-card__head {
  flex-direction: row-reverse;
}

.how-card--2 h3,
.how-card--4 h3 {
  text-align: right;
}

.how-card--2 p,
.how-card--4 p {
  text-align: right;
}

@media (max-width: 767px) {
  .section-how {
    min-height: auto;
    padding: 2rem 1rem 2.5rem;
  }

  .how-zigzag {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 420px;
    margin: 0 auto;
  }

  .how-card {
    max-width: 100%;
  }

  .how-card--1,
  .how-card--3 {
    align-self: flex-start;
    width: min(100%, 380px);
  }

  .how-card--2,
  .how-card--4 {
    align-self: flex-end;
    width: min(100%, 380px);
  }

  .how-card__img {
    height: clamp(120px, 32vw, 170px);
  }
}

/* —— Stats collage —— */
.real-block {
  max-width: 1100px;
  margin: 0 auto;
}

.real-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

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

.real-collage img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.real-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: var(--text);
}

.real-stats span {
  opacity: 0.85;
}

/* —— Three pillars —— */
.pillar-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 1025px) {
  .pillar-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
  }
}

.pillar {
  flex: 1;
  max-width: 340px;
  text-align: center;
}

.pillar h3 {
  margin: 0 0 1rem;
  font-family: var(--font-spencer);
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.2;
  min-height: 2.8em;
}

.pillar img {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  margin: 0 auto;
  display: block;
}

/* —— Marquee strip —— */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
  padding: 0.5rem 0;
}

.marquee {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee img {
  height: 280px;
  width: auto;
  border-radius: 12px;
  flex-shrink: 0;
  transform: rotate(2deg);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

/* —— Compare —— */
.compare-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1025px) {
  .compare-row {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }
}

.compare-col {
  flex: 1;
  text-align: center;
}

.compare-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.compare-head {
  font-family: var(--font-spencer);
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  text-shadow: 0 1px 6px #000;
}

.compare-col img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
}

/* —— Verified —— */
.safe-rows {
  width: 100%;
  max-width: 360px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1025px) {
  .safe-rows {
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.safe-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .safe-item.row-mobile {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}

@media (min-width: 1025px) {
  .safe-item.row-mobile {
    flex-direction: column;
    text-align: center;
  }
}

.safe-item .safe-illus {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .safe-item.row-mobile .safe-illus {
    width: 88px;
    height: 88px;
  }
}

.safe-tag {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.safe-text {
  font-family: var(--font-spencer);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  line-height: 1.2;
  margin: 0;
  white-space: pre-line;
}

/* —— FAQ —— */
.faq-wrap {
  width: 100%;
  max-width: 800px;
  margin: 1.5rem auto 0;
}

.faq-item {
  background: var(--faq-card);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

@media (min-width: 1025px) {
  .faq-item summary {
    font-size: 1.125rem;
    padding: 1.125rem 1.5rem;
  }
}

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

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--pink);
  transition: transform 0.2s ease;
}

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

.faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq-body p {
  margin: 0 0 0.75rem;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* —— Footer signup —— */
.ditto-footer {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  background: linear-gradient(180deg, #050608 0%, #011e2c 100%);
}

.ditto-footer h2 {
  font-family: var(--font-spencer);
  font-size: clamp(1.85rem, 5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .signup-row {
    flex-direction: row;
  }
}

.signup-row input {
  flex: 1;
  padding: 0.875rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.signup-row input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.signup-row button {
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cta-text);
  cursor: pointer;
}

.footer-meta {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.55);
}
