/* The homepage's two front doors (spec 2026-10-25). Every rule is scoped to
   .hd-* so it is inert on the other pages `stylesheet_link_tag :app` loads it on. */
.home-doors-body { background: #FBFAFF; }

.hd-page {
  --hd-ink: #17183B;
  --hd-muted: #5A5D78;
  --hd-line: #E3E0EE;
  --hd-purple: #6D4AFF;
  --hd-purple-ink: #4B2FD6;
  --hd-navy: #14163A;
  --hd-navy-2: #1E2150;
  --hd-navy-line: #3A3D6B;
  --hd-on-navy: #DADCF2;
  --hd-on-navy-muted: #C9CBE6;
  --hd-marigold: #F4B23E;
  color: var(--hd-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0 0 64px;
}
.hd-page *, .hd-page *::before, .hd-page *::after { box-sizing: border-box; }

.hd-hero, .hd-section { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hd-hero { padding-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.hd-headline {
  margin: 0; text-align: center; font-weight: 800; letter-spacing: -0.035em; line-height: 1.06;
  font-size: clamp(32px, 4.6vw, 56px); color: var(--hd-ink);
}
.hd-headline span { color: var(--hd-purple); }

.hd-doors { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.hd-door {
  flex: 1 1 460px; min-width: 0; border-radius: 28px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.hd-doors--single .hd-door { flex-basis: 100%; }
.hd-door--personal { background: #FFFFFF; border: 1px solid var(--hd-line); box-shadow: 0 12px 40px rgba(40, 30, 110, 0.07); }
.hd-door--business { background: var(--hd-navy); color: #FFFFFF; }
.hd-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hd-purple-ink); }
.hd-door--business .hd-eyebrow { color: var(--hd-marigold); }
.hd-door-title { margin: 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.hd-door-text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--hd-on-navy); }
.hd-door-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.hd-tag { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #2A2D5E; color: #F7D58F; }
.hd-strip { margin: 0; font-size: 14px; color: var(--hd-on-navy-muted); }

.hd-prompt, .hd-biz-form { display: flex; flex-direction: column; gap: 12px; }
.hd-label { font-size: 13px; font-weight: 600; color: var(--hd-muted); }
.hd-door--business .hd-label { color: var(--hd-on-navy-muted); }
.hd-prompt textarea {
  width: 100%; border: 1px solid #DCD9E8; border-radius: 16px; padding: 14px; resize: none;
  font: 400 17px/1.45 Inter, sans-serif; color: var(--hd-ink); background: #FFFFFF;
}
.hd-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.hd-field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.hd-field input {
  min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--hd-navy-line);
  background: var(--hd-navy-2); color: #FFFFFF; font: 400 16px Inter, sans-serif;
}
.hd-field input::placeholder { color: #9EA1C4; }
.hd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.hd-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 14px; border: 0; font: 600 16px Inter, sans-serif; text-decoration: none; cursor: pointer;
}
.hd-btn--dark { background: var(--hd-ink); color: #FFFFFF; }
.hd-btn--outline { background: #FFFFFF; color: var(--hd-ink); border: 1px solid #DCD9E8; }
.hd-btn--marigold { background: var(--hd-marigold); color: var(--hd-ink); font-weight: 700; }
.hd-btn:focus-visible, .hd-link:focus-visible, .hd-tile:focus-visible { outline: 3px solid var(--hd-purple); outline-offset: 2px; }
.hd-link { color: var(--hd-purple-ink); font-weight: 600; font-size: 15px; text-decoration: none; padding: 12px 4px; }
.hd-link:hover { text-decoration: underline; }
.hd-door--business .hd-link { color: var(--hd-marigold); }

.hd-samples, .hd-examples { display: grid; gap: 10px; margin-top: auto; }
.hd-samples { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hd-samples img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; display: block; }
.hd-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hd-examples figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hd-examples img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
.hd-examples figcaption { font-size: 12px; color: var(--hd-on-navy-muted); }

.hd-credits { margin: 0; text-align: center; font-size: 15px; color: var(--hd-muted); }

.hd-section { padding-top: 56px; display: flex; flex-direction: column; gap: 20px; }
.hd-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hd-section-title { margin: 0; font-size: 30px; letter-spacing: -0.02em; font-weight: 800; }
.hd-section-sub { margin: 6px 0 0; color: var(--hd-muted); font-size: 16px; }

.hd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.hd-grid--wide { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.hd-tile {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden;
  background: #E9E6F5; text-decoration: none;
}
.hd-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 12px;
  background: linear-gradient(rgba(12, 12, 30, 0), rgba(12, 12, 30, 0.82));
  color: #FFFFFF; display: flex; flex-direction: column; gap: 2px;
}
.hd-tile-caption small { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #E4E2F2; }
.hd-tile-caption strong { font-size: 15px; font-weight: 700; }

.hd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.hd-step {
  background: #FFFFFF; border: 1px solid var(--hd-line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.hd-step-num {
  width: 36px; height: 36px; border-radius: 50%; background: #F1EDFF; color: var(--hd-purple-ink);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.hd-step h3 { margin: 0; font-size: 19px; font-weight: 700; }
.hd-step p { margin: 0; color: var(--hd-muted); font-size: 15px; line-height: 1.5; }
.hd-step img { width: 100%; max-width: 320px; border-radius: 14px; display: block; }

@media (max-width: 640px) {
  .hd-hero { padding: 24px 16px 0; gap: 20px; }
  .hd-section { padding: 40px 16px 0; }
  .hd-door { padding: 22px; border-radius: 22px; flex-basis: 100%; }
  .hd-section-title { font-size: 24px; }
  .hd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
