/* Landing page (public/index.html). Shares the colors, fonts and buttons
   in styles.css. */

.landing h1,
.landing h2,
.landing h3 {
  font-family: "Playfair Display", Georgia, serif;
}

.btn.big {
  font-size: 1.2rem;
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  display: inline-block;
}

a.btn { text-decoration: none; display: inline-block; }

/* On the cobalt hero, the primary button is cream on cobalt-deep. */
.btn.primary.on-dark {
  background: var(--cream);
  color: var(--cobalt-deep);
  border-color: var(--cream);
  font-weight: 600;
}

/* ---- Hero ---- */

.landing-hero {
  background: linear-gradient(180deg, var(--cobalt-deep), var(--cobalt));
  color: var(--cream);
  padding: 1rem 1.25rem 3.5rem;
}

.landing-nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-brand {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.landing-brand img { height: 2.4rem; width: auto; opacity: 0.9; }

.hero-grid {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero-lede {
  font-size: 1.35rem;
  line-height: 1.45;
  margin: 0 0 1.75rem;
  opacity: 0.95;
}

.hero-note {
  margin: 0.8rem 0 0;
  font-size: 1.05rem;
  opacity: 0.8;
}

.hero-sample { margin: 0; }
/* Style picker under the hero slider. */
.style-switch { margin-top: 0.9rem; text-align: center; }
.switch-families,
.switch-styles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.switch-styles { margin-top: 0.5rem; }
.style-switch button {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(250, 246, 238, 0.5);
}
.switch-families button { font-size: 1.1rem; padding: 0.35rem 1rem; }
.switch-styles button { font-size: 0.95rem; padding: 0.2rem 0.8rem; opacity: 0.85; }
.style-switch button:hover { border-color: var(--cream); }
.style-switch button.selected {
  background: var(--cream);
  color: var(--cobalt-deep);
  border-color: var(--cream);
  opacity: 1;
}

.hero-sample figcaption {
  text-align: center;
  margin-top: 0.6rem;
  font-size: 1rem;
  opacity: 0.8;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 1.5rem; }
  .landing-brand { font-size: 1.05rem; }
  .landing-brand img { display: none; }
  .landing-nav .btn { font-size: 0.95rem; padding: 0.5rem 0.9rem; }
}

/* ---- Before/after slider ---- */

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  user-select: none;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* The photo covers the left side, up to the divider. */
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.6rem;
  height: 2.6rem;
  margin: -1.3rem 0 0 -1.3rem;
  border-radius: 50%;
  background: #fff;
  color: var(--cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.compare-tag {
  position: absolute;
  bottom: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.95rem;
  pointer-events: none;
}
.compare-tag.left { left: 0.8rem; }
.compare-tag.right { right: 0.8rem; }

.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  /* Vertical swipes still scroll the page on phones. */
  touch-action: pan-y;
}
.compare:has(input:focus-visible) { outline: 3px solid var(--cream); outline-offset: 3px; }

/* ---- Sections ---- */

.landing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 0;
}

.landing-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--cobalt);
  margin: 0 0 1.25rem;
  text-align: center;
}

.section-lede {
  text-align: center;
  font-size: 1.25rem;
  margin: -0.5rem 0 1.75rem;
}

.steps,
.ideas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ideas { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.steps li,
.ideas li,
.shape-card {
  background: #fff;
  border: 1px solid #e4dcca;
  border-radius: 10px;
  padding: 1.4rem 1.3rem;
}

.steps h3,
.ideas h3,
.shape-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--cobalt-deep);
}

.steps p,
.ideas p,
.shape-card p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.style-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.style-card {
  background: #fff;
  border: 1px solid #e4dcca;
  border-radius: 10px;
  overflow: hidden;
}
.style-card img { width: 100%; aspect-ratio: 1 / 1; display: block; }
.style-card h3 { margin: 1rem 1.3rem 0.3rem; font-size: 1.4rem; color: var(--cobalt-deep); }
.style-card > p { margin: 0 1.3rem; font-size: 1.15rem; line-height: 1.4; }
.style-card details { margin: 0.8rem 1.3rem 1.2rem; }
.style-card summary {
  cursor: pointer;
  color: var(--cobalt);
  font-weight: 600;
  font-size: 1.1rem;
}
.style-card ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.style-card li { font-size: 1.1rem; line-height: 1.4; margin-bottom: 0.4rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery figure { margin: 0; }
.gallery figcaption { text-align: center; margin-top: 0.6rem; font-size: 1.15rem; }

.ai-note {
  max-width: 760px;
  text-align: center;
}
.ai-note p { font-size: 1.3rem; line-height: 1.5; margin: 0 0 1rem; }

.shapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.shape-card { text-align: center; }
.size-label { white-space: nowrap; }

.shape-icon {
  display: block;
  margin: 0 auto 0.9rem;
  border: 3px solid var(--cobalt);
  background: #fff;
  box-shadow: inset 0 0 0 4px #e8edf8;
}
.shape-icon.shape-square { width: 3.4rem; height: 3.4rem; border-radius: 3px; }
.shape-icon.shape-round { width: 3.4rem; height: 3.4rem; border-radius: 50%; }
.shape-icon.shape-rectangular { width: 2.8rem; height: 3.7rem; border-radius: 3px; }
.shape-icon.shape-oval { width: 2.8rem; height: 3.8rem; border-radius: 50%; }

.landing-cta {
  text-align: center;
  margin: 4rem auto 0;
  padding: 3rem 1.25rem;
  background: #fff;
  border-top: 1px solid #e4dcca;
  border-bottom: 1px solid #e4dcca;
}
.landing-cta h2 { color: var(--cobalt); font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 0.5rem; }
.landing-cta p { font-size: 1.25rem; margin: 0 0 1.5rem; }

.landing-footer p { margin: 0 0 0.5rem; font-size: 1.15rem; opacity: 1; }

.landing-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1rem;
  opacity: 0.7;
}

/* ---- Take a closer look ---- */

.compare-zoom {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2; /* above the invisible range input */
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.compare-zoom:hover { background: #fff; }

.closeup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: rgb(20, 20, 22); /* matches the close-up images' surround */
  color: #fff;
}
.closeup[hidden] { display: none; }

.closeup-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
}
.closeup-title { flex: 1; font-size: 1.15rem; opacity: 0.9; }

.closeup-zoom { display: flex; gap: 0.35rem; }
.closeup-zoom button {
  font: inherit;
  font-size: 1rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.closeup-zoom button.selected { background: #fff; color: #141416; }

.closeup-close {
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Scrolls when zoomed in; margin: auto centers the picture when it's
   smaller than the screen without cutting off its edges when it's bigger. */
.closeup-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
}
.closeup-compare {
  margin: auto;
  border-radius: 0;
  box-shadow: none;
}

.closeup-hint {
  margin: 0;
  padding: 0.5rem 1rem 0.8rem;
  text-align: center;
  font-size: 1rem;
  opacity: 0.7;
}
