/* ============================================================
   UR-Amazing.org — Page & Component Styles
   Interactive tools · Learning center · Advertiser network
   ============================================================ */

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(6.5rem, 5rem + 8vw, 9rem) clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--grad-dawn);
  overflow: hidden;
  text-align: center;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { margin-inline: auto; }
.page-hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.9; }

/* ---------- Feature rows ---------- */
.feature-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 3.4;
  background: var(--grad-dawn);
}
.feature-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-media.round { border-radius: var(--r-xl); }

/* ---------- Photographic imagery (stock placeholders) ----------
   A warm duotone overlay unifies any stock photo into the brand palette so
   mixed imagery reads as premium and cohesive. If a photo fails to load, the
   grad-dawn background remains — never a broken image. */
.photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--grad-dawn);
  aspect-ratio: 4 / 3.2;
}
.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(246,169,76,0.42), rgba(242,133,122,0.30) 55%, rgba(183,167,221,0.34));
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.photo.tall { aspect-ratio: 3 / 3.6; }
.photo.wide { aspect-ratio: 16 / 10; }
.photo .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.6rem 1.5rem 1.3rem;
  background: linear-gradient(0deg, rgba(59,46,40,0.6), rgba(59,46,40,0.15) 60%, transparent);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.2;
}
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.photo-grid .photo:nth-child(2) { margin-top: 2rem; }
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid .photo:nth-child(2) { margin-top: 0; }
  .photo-grid .photo:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 460px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .photo:nth-child(3) { grid-column: auto; }
}

.value-list { display: grid; gap: 1rem; }
.value-item { display: flex; gap: 1rem; align-items: flex-start; }
.value-item .dot {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: var(--white);
  box-shadow: var(--sh-sm);
}
.value-item h4 { margin-bottom: 0.2rem; }
.value-item p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Interactive tool cards ---------- */
.tool {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem);
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.tool-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.tool-head .card-icon { margin: 0; }
.tool-output {
  margin-top: 1.4rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--grad-soft);
  border: 2px dashed rgba(200,155,110,0.35);
  min-height: 84px;
  display: flex; align-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ink);
  transition: transform 0.4s var(--ease);
}
.tool-output.pop { animation: popIn 0.5s var(--ease); }
@keyframes popIn { from { transform: scale(0.96); opacity: 0.5; } to { transform: scale(1); opacity: 1; } }

/* Daily encouragement banner */
.daily {
  border-radius: var(--r-xl);
  padding: clamp(2rem, 1.5rem + 3vw, 3.4rem);
  background: var(--grad-sunrise);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.daily .quote-block { color: var(--white); max-width: 26ch; }
.daily .quote-block::before { color: rgba(255,255,255,0.35); }
.daily .quote-attr { color: rgba(255,255,255,0.85); }
.daily .btn { margin-top: 1.6rem; }

/* Confidence journal / gratitude garden */
.journal-entry {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--sh-sm);
  display: flex; gap: 0.8rem; align-items: flex-start;
  animation: popIn 0.4s var(--ease);
}
.journal-entry .when { font-size: 0.78rem; color: var(--ink-faint); font-weight: 700; }
.journal-list { display: grid; gap: 0.8rem; margin-top: 1.2rem; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.empty-state {
  text-align: center; color: var(--ink-faint);
  padding: 1.6rem; font-style: italic; font-family: var(--font-display);
}

/* Gratitude garden — flowers grow with entries */
.garden {
  position: relative;
  min-height: 180px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #EAF4EC 0%, #D7EBD9 100%);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 4px; padding: 0 12px 0;
}
.garden .flower { animation: bloom 0.7s var(--ease) backwards; transform-origin: bottom center; }
@keyframes bloom { from { transform: translateY(20px) scale(0.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* Relationship health check quiz */
.quiz-question { display: none; }
.quiz-question.active { display: block; animation: popIn 0.4s var(--ease); }
.quiz-options { display: grid; gap: 0.7rem; margin-top: 1.2rem; }
.quiz-opt {
  text-align: left;
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 2px solid rgba(200,155,110,0.28);
  font-weight: 700; font-size: 1rem; color: var(--ink);
  transition: all 0.25s var(--ease);
}
.quiz-opt:hover { border-color: var(--sunrise); background: var(--cream); transform: translateX(4px); }
.quiz-opt.selected { border-color: var(--sunrise); background: var(--champagne); }
.quiz-progress { height: 8px; border-radius: 8px; background: rgba(200,155,110,0.2); overflow: hidden; margin-bottom: 1.4rem; }
.quiz-progress span { display: block; height: 100%; background: var(--grad-warm); border-radius: 8px; transition: width 0.5s var(--ease); }
.quiz-result { text-align: center; display: none; }
.quiz-result.show { display: block; animation: popIn 0.5s var(--ease); }
.result-score {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1;
}

/* ---------- Learning center ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; }
.topic {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--sh-sm);
  font-weight: 700; color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.topic .t-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--white); flex-shrink: 0; }
.topic .t-ic svg { width: 20px; height: 20px; }

/* Accordion (lessons / FAQ) */
.accordion { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); background: var(--white); }
.acc-item { border-bottom: 1px solid rgba(200,155,110,0.18); }
.acc-item:last-child { border-bottom: none; }
.acc-trigger {
  width: 100%; text-align: left;
  padding: 1.3rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink);
  transition: background 0.3s var(--ease);
}
.acc-trigger:hover { background: var(--cream); }
.acc-trigger .plus {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--champagne); color: var(--sunrise-deep);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 700;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.acc-item.open .acc-trigger .plus { transform: rotate(135deg); background: var(--grad-warm); color: var(--white); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.acc-panel-inner { padding: 0 1.6rem 1.5rem; color: var(--ink-soft); }
.acc-panel-inner p + p { margin-top: 0.8rem; }

/* Compliment examples grid */
.compliment-type { border-radius: var(--r-lg); padding: 1.8rem; box-shadow: var(--sh-sm); background: var(--white); }
.compliment-type h3 { display: flex; align-items: center; gap: 0.6rem; }
.compliment-type .quote-ex {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--coral-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--cream);
  font-family: var(--font-display); font-style: italic; color: var(--ink);
}
.compliment-type .quote-ex + .quote-ex { margin-top: 0.7rem; }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.step { display: flex; gap: 1.2rem; align-items: flex-start; }
.step .n {
  counter-increment: step;
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-warm); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  box-shadow: var(--sh-sm);
}
.step .n::before { content: counter(step); }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--sh-sm); position: relative; }
.testimonial .stars { color: var(--sunrise); letter-spacing: 2px; margin-bottom: 0.8rem; }
.testimonial p { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink); }
.testimonial .who { margin-top: 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.testimonial .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-weight: 800; }
.testimonial .who b { display: block; font-family: var(--font-body); }
.testimonial .who span { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Advertiser Network ---------- */
.network-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.net-tile {
  position: relative;
  border-radius: var(--r-lg);
  padding: 1.6rem;
  color: var(--white);
  overflow: hidden;
  cursor: pointer;
  min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--sh-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.net-tile:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.net-tile::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,0.28), transparent 60%);
  pointer-events: none;
}
.net-tile h3 { color: var(--white); position: relative; z-index: 1; }
.net-tile .net-tag { position: relative; z-index: 1; font-size: 0.85rem; opacity: 0.92; font-weight: 700; }
.net-tile .net-stats { position: relative; z-index: 1; display: flex; gap: 1.2rem; margin-top: 1rem; }
.net-tile .net-stats div b { font-family: var(--font-display); font-size: 1.4rem; display: block; }
.net-tile .net-stats div span { font-size: 0.72rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; }
.net-more { position: relative; z-index:1; margin-top:1rem; font-weight:800; font-size:0.85rem; opacity:0.9; }

.net-water   { background: linear-gradient(135deg, #4C8FB0, #2E6A85); }
.net-high    { background: linear-gradient(135deg, #6FA86B, #3E7A54); }
.net-comedy  { background: linear-gradient(135deg, #E76F51, #C1362E); }
.net-show    { background: linear-gradient(135deg, #B7699E, #7A3E77); }
.net-dating  { background: linear-gradient(135deg, #F0917E, #D65B6B); }
.net-wings   { background: linear-gradient(135deg, #F2A44C, #E2542C); }
.net-comp    { background: linear-gradient(135deg, #7FB8D6, #5A93B8); }
.net-amazing { background: var(--grad-warm); }

/* Network detail drawer */
.net-detail {
  margin-top: 1.2rem;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}
.net-detail.open { max-height: 900px; }
.net-detail-inner { padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); }

/* Banner placement previews */
.placement-mock {
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-md);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.mock-window { border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(200,155,110,0.25); background: var(--ivory); }
.mock-bar { display: flex; gap: 6px; padding: 8px 12px; background: var(--sand); align-items: center; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mock-bar .r { background: #F2857A; } .mock-bar .y { background: #F6A94C; } .mock-bar .g { background: #8FC79A; }
.mock-body { padding: 12px; display: grid; gap: 10px; }
.ad-slot {
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, rgba(246,169,76,0.15), rgba(246,169,76,0.15) 10px, rgba(246,169,76,0.28) 10px, rgba(246,169,76,0.28) 20px);
  border: 2px dashed var(--sunrise);
  display: grid; place-items: center;
  color: var(--sunrise-deep); font-weight: 800; font-size: 0.75rem;
  text-align: center; padding: 6px;
}
.ad-leaderboard { height: 44px; }
.ad-rect { height: 120px; }
.ad-content { height: 12px; border-radius: 6px; background: rgba(200,155,110,0.2); }
.ad-content.short { width: 55%; }

/* Placement chooser buttons */
.placement-list { display: grid; gap: 0.5rem; }
.placement-btn {
  text-align: left; padding: 0.8rem 1.1rem; border-radius: var(--r-md);
  background: var(--white); box-shadow: var(--sh-sm);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 700; transition: all 0.25s var(--ease); width: 100%;
}
.placement-btn:hover { transform: translateX(4px); box-shadow: var(--sh-md); }
.placement-btn.active { background: var(--champagne); box-shadow: inset 0 0 0 2px var(--sunrise); }
.placement-btn small { color: var(--ink-faint); font-weight: 700; font-size: 0.78rem; }

/* Multi-step advertiser form */
.stepper { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.stepper .s {
  flex: 1; min-width: 120px;
  padding: 0.7rem 0.9rem; border-radius: var(--r-md);
  background: var(--white); box-shadow: var(--sh-sm);
  font-weight: 800; font-size: 0.82rem; color: var(--ink-faint);
  display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s var(--ease);
}
.stepper .s .num { width: 24px; height: 24px; border-radius: 50%; background: var(--sand); color: var(--ink-faint); display: grid; place-items: center; font-size: 0.78rem; flex-shrink: 0; }
.stepper .s.active { color: var(--ink); box-shadow: inset 0 0 0 2px var(--sunrise); }
.stepper .s.active .num { background: var(--grad-warm); color: var(--white); }
.stepper .s.done .num { background: var(--green); color: var(--white); }
.form-step { display: none; }
.form-step.active { display: block; animation: popIn 0.4s var(--ease); }
.form-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* Banner builder live preview */
.builder-preview {
  border-radius: var(--r-md);
  min-height: 250px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; gap: 0.8rem;
  background: var(--grad-warm); color: var(--white);
  box-shadow: var(--sh-md);
  transition: background 0.4s var(--ease);
}
.builder-preview .bp-logo { width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,0.25); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
.builder-preview .bp-head { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.15; }
.builder-preview .bp-sub { opacity: 0.9; }
.builder-preview .bp-cta { margin-top: 0.4rem; background: var(--white); color: var(--ink); padding: 0.6rem 1.4rem; border-radius: var(--r-pill); font-weight: 800; }
.swatches { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; box-shadow: var(--sh-sm); border: 3px solid transparent; transition: transform 0.25s var(--ease); }
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--ink); }

/* Dashboard mockup */
.dash {
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  border: 1px solid rgba(200,155,110,0.2);
}
.dash-top { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.6rem; background: var(--cream); border-bottom: 1px solid rgba(200,155,110,0.2); }
.dash-body { display: grid; grid-template-columns: 200px 1fr; }
@media (max-width: 720px) { .dash-body { grid-template-columns: 1fr; } .dash-side { display: none; } }
.dash-side { padding: 1.2rem; border-right: 1px solid rgba(200,155,110,0.2); display: grid; gap: 0.4rem; align-content: start; }
.dash-side a { padding: 0.6rem 0.9rem; border-radius: var(--r-md); font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }
.dash-side a.on { background: var(--champagne); color: var(--ink); }
.dash-main { padding: 1.6rem; display: grid; gap: 1.2rem; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.dash-metric { background: var(--grad-soft); border-radius: var(--r-md); padding: 1.1rem; box-shadow: var(--sh-sm); }
.dash-metric .m-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.dash-metric .m-lab { font-size: 0.8rem; color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.dash-chart { background: var(--grad-soft); border-radius: var(--r-md); padding: 1.4rem; box-shadow: var(--sh-sm); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: 1rem; }
.bars i { flex: 1; background: var(--grad-warm); border-radius: 6px 6px 0 0; display: block; animation: grow 1s var(--ease) backwards; }
@keyframes grow { from { height: 0 !important; } }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 0.9rem 1.2rem; border-bottom: 1px solid rgba(200,155,110,0.16); }
.spec-table th { background: var(--cream); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: #7A5320; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 800; }

/* CTA band */
.cta-band {
  border-radius: var(--r-xl);
  background: var(--grad-sunrise);
  color: var(--white);
  padding: clamp(2.4rem, 2rem + 3vw, 4.2rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: rgba(255,255,255,0.92); }
.cta-band .btn-primary { background: var(--white); color: var(--sunrise-deep); }
.cta-band .btn-primary:hover { background: var(--ink); color: var(--white); }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.14);
}
.cta-band::before { width: 260px; height: 260px; top: -110px; right: -70px; }
.cta-band::after { width: 180px; height: 180px; bottom: -90px; left: -50px; }

/* Big final CTA (home) */
.final-cta {
  text-align: center;
  padding-block: clamp(5rem, 4rem + 6vw, 9rem);
  background: var(--grad-dawn);
  position: relative;
  overflow: hidden;
}
.final-cta h2 { font-size: clamp(2.2rem, 1.6rem + 3vw, 4rem); }

/* Marquee of logos / audiences */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink-faint); white-space: nowrap; font-weight: 500; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Small print / legal */
.fineprint { font-size: 0.85rem; color: var(--ink-faint); }
.callout {
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
  background: var(--champagne);
  border-left: 5px solid var(--sunrise);
}
.callout.heal { background: var(--lavender-soft); border-left-color: var(--lavender); }
.callout.grow { background: var(--green-soft); border-left-color: var(--green); }
