/* ==========================================================
   DipIn — public website
   ----------------------------------------------------------
   Beginner note:
   CSS variables below are reusable design values. For example,
   changing --pink once changes the main pink in many places.
   ========================================================== */

:root {
  --pink: #ec86a7;
  --pink-deep: #df6f97;
  --teal: #073f42;
  --blue-hill: #087487;
  --green: #88ad2f;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --line: #e7dac5;
  --muted: #395d60;
  --shadow: 0 12px 36px rgba(23, 62, 58, 0.08);
  --radius: 18px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--teal);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header --------------------------------------------------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  padding: 16px clamp(24px, 6vw, 88px);
}

/*
  The product name stays visible separately from the "Meet outside." headline.
  This makes it clear that DipIn is the brand and the headline is an idea/tagline.
*/
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  color: var(--teal);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 35%;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--cream);
  opacity: 0.88;
}

.menu-button { display: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 42px);
  font-size: 0.98rem;
  font-weight: 700;
}
.main-nav a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a:focus-visible { border-color: currentColor; }

/* Hero ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 505px;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--pink);
  /*
    These tiny translucent dots imitate the soft printed-paper texture from the
    approved visual reference without requiring another image file.
  */
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.10) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 63%, rgba(7,63,66,0.05) 0 1px, transparent 1.4px);
  background-size: 18px 18px, 23px 23px;
}

/*
  The desktop artwork is a clean crop made from the reference image.
  The text is NOT baked into it; the headline and navigation remain
  real HTML, so they stay selectable, accessible, and easy to edit.
*/
.hero__desktop-art {
  position: absolute;
  z-index: -1;
  right: 0;
  top: 66px;
  width: 58%;
  height: calc(100% - 66px);
  background: url("../img/desktop-hero-art.png") center bottom / cover no-repeat;
}

/* Simple CSS landscape layers fill the lower-left area so the desktop
   composition feels continuous even though the supplied artwork was portrait. */
.hero__wave {
  position: absolute;
  z-index: -2;
  left: -10%;
  width: 70%;
  border-radius: 50% 70% 0 0;
  transform: rotate(-4deg);
}
.hero__wave--blue {
  bottom: -78px;
  height: 205px;
  background: var(--blue-hill);
}
.hero__wave--green {
  bottom: -132px;
  left: 26%;
  width: 80%;
  height: 175px;
  background: var(--green);
  z-index: -1;
}

.hero__content {
  width: min(1300px, calc(100% - 80px));
  margin-inline: auto;
  padding-top: 112px;
}

/*
  The small kicker repeats the product name close to the headline. On a wide
  screen this supports the top-left wordmark; on mobile it can be hidden.
*/
.hero__brand-kicker {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.82;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(4.7rem, 7vw, 7.6rem);
  line-height: 0.91;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.hero__tagline {
  margin: 18px 0 8px;
  max-width: 610px;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  font-weight: 700;
}

.hero__meaning {
  max-width: 570px;
  margin: 0 0 22px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(7, 63, 66, 0.86);
}

.hero__promises {
  max-width: 490px;
  font-size: 1.02rem;
  font-weight: 600;
}
.hero__promises p {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
}
.promise-icon {
  display: grid;
  place-items: center;
  min-width: 36px;
  font-size: 1.3rem;
}

.promise-icon--people {
  font-size: 0.78rem;
  letter-spacing: -0.1em;
}
.promise-icon--shield {
  width: 32px;
  height: 38px;
  border: 2px solid var(--teal);
  border-radius: 45% 45% 55% 55%;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.button--primary {
  margin-top: 8px;
  min-width: 250px;
  padding: 14px 24px;
  background: var(--teal);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.23rem;
  box-shadow: var(--shadow);
}
.hero__mobile-actions { display: none; }

/* Ideas ---------------------------------------------------- */
.section { padding: 28px 0 12px; }
.ideas {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 22% 18%, rgba(7,63,66,0.025) 0 1px, transparent 1.3px);
  background-size: 20px 20px;
}
.ideas h2 {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.1;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.idea-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.55);
  padding: 10px 10px 16px;
  text-align: center;
}
.idea-card img {
  width: 100%;
  aspect-ratio: 1.7 / 1;
  object-fit: cover;
  border-radius: 10px;
}
.idea-card h3 {
  margin: 10px 0 2px;
  font-family: var(--serif);
  font-size: 1.25rem;
}
.idea-card p {
  margin: 0 auto;
  max-width: 220px;
  font-size: 0.9rem;
}

.more-ideas {
  width: fit-content;
  max-width: 760px;
  margin: 16px auto 0;
  text-align: center;
}
.more-ideas summary {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  min-width: 230px;
  justify-content: center;
  padding: 9px 22px;
  border: 2px solid var(--teal);
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.more-ideas summary::-webkit-details-marker { display: none; }
.more-ideas p { margin: 14px 0 0; }

/* Footer-style utility row -------------------------------- */
.utility-links {
  width: min(1200px, calc(100% - 48px));
  margin: 14px auto 0;
  border-top: 1px solid var(--line);
  padding: 20px 0 18px;
}
.utility-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.utility-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 0 18px;
  text-decoration: none;
  border-right: 1px solid var(--line);
}
.utility-item:last-child { border-right: 0; }
.utility-item:hover strong { text-decoration: underline; }
.utility-item strong,
.utility-item small { display: block; }
.utility-item small { margin-top: 3px; line-height: 1.35; }
.utility-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  font-weight: 800;
}
.privacy-note {
  margin: 22px auto 0;
  text-align: center;
  font-size: 0.9rem;
}
.small-footer {
  padding: 8px 20px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/*
  An intentionally loud placeholder. The user asked for "? hours" to remain
  impossible to miss until the real chat-retention value is verified.
*/
.placeholder-value {
  display: inline-block;
  padding: 1px 7px;
  border: 2px dashed var(--teal);
  border-radius: 7px;
  background: #fff1a9;
  color: var(--teal);
  transform: rotate(-1deg);
}

.privacy-note__icon {
  margin-right: 6px;
}

/* Shared inner pages -------------------------------------- */
.inner-page { min-height: 100svh; background: var(--cream); }
.inner-header {
  position: static;
  background: var(--pink);
  justify-content: space-between;
}
.inner-header .brand {
  display: inline-flex;
}
.prose {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 90px;
}
.page-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.prose-lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
}

.prose h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1;
}
.prose h2 { margin-top: 36px; font-family: var(--serif); }
.prose .draft-note {
  border-left: 4px solid var(--pink-deep);
  background: #fff5f7;
  padding: 14px 16px;
  border-radius: 8px;
}
.prose form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.prose label { font-weight: 700; }
.prose input,
.prose textarea {
  width: 100%;
  border: 1px solid #b9c9c6;
  border-radius: 10px;
  padding: 12px;
  background: white;
}
.prose textarea { min-height: 140px; resize: vertical; }

/* Responsive layout --------------------------------------- */
@media (max-width: 900px) {
  .idea-grid { grid-template-columns: repeat(2, 1fr); }
  .utility-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .utility-item { border-right: 0; }
}

@media (max-width: 700px) {
  body { background: var(--cream); }

  .site-header {
    position: absolute;
    min-height: 64px;
    padding: 12px 18px;
    justify-content: space-between;
  }
  .site-header:not(.inner-header) .brand {
    /*
      On the mobile artwork the wordmark sits on top of the image, so the
      translucent cream pill keeps it readable without hiding the illustration.
    */
    padding: 5px 11px 6px;
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.88);
    backdrop-filter: blur(4px);
  }

  .site-header:not(.inner-header) .brand::after {
    display: none;
  }
  .menu-button {
    display: grid;
    gap: 4px;
    margin-left: auto;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.72);
    color: var(--teal);
    cursor: pointer;
  }
  .menu-button span:not(.sr-only) {
    width: 19px;
    height: 2px;
    background: currentColor;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 58px;
    right: 18px;
    width: min(270px, calc(100vw - 36px));
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 14px;
    background: rgba(255, 250, 240, 0.98);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 12px; }

  .hero {
    min-height: 100svh;
    background: url("../img/mobile-hero-art.png") center / cover no-repeat;
  }
  .hero__desktop-art,
  .hero__wave,
  .hero__promises,
  .hero__desktop-cta,
  .hero__brand-kicker { display: none; }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-height: 100svh;
    padding: 0 24px max(42px, env(safe-area-inset-bottom));
    color: var(--cream);
    text-align: center;
  }
  .hero h1 {
    font-size: clamp(3.15rem, 13vw, 4.6rem);
    letter-spacing: -0.035em;
    line-height: 1;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  }
  .hero__tagline {
    max-width: 340px;
    margin: 14px 0 8px;
    font-size: clamp(1.08rem, 4.7vw, 1.35rem);
    line-height: 1.35;
  }

  .hero__meaning {
    max-width: 330px;
    margin: 0 0 24px;
    color: rgba(255, 250, 240, 0.94);
    font-size: 0.95rem;
    line-height: 1.4;
    text-shadow: 0 2px 12px rgba(0,0,0,0.12);
  }
  .hero__mobile-actions {
    display: grid;
    width: min(100%, 390px);
    gap: 16px;
  }
  .button--mobile {
    min-height: 62px;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--cream);
    color: var(--teal);
    font-size: 1.15rem;
  }
  .hero__text-link {
    width: fit-content;
    margin: 0 auto;
    color: var(--cream);
    font-size: 1.05rem;
    text-underline-offset: 4px;
  }

  .section { padding-top: 34px; }
  .idea-grid { grid-template-columns: 1fr; }
  .idea-card { padding: 11px 11px 18px; }
  .idea-card p { max-width: 300px; }

  .utility-links { width: calc(100% - 28px); }
  .utility-grid { grid-template-columns: 1fr; }
  .utility-item { padding: 8px 12px; }
  .privacy-note { padding-inline: 12px; }

  .inner-header .brand {
    display: inline-flex;
    padding: 0;
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
