/*
Theme Name: RosaceaWise
Theme URI: https://rosaceawise.com
Author: RosaceaWise
Author URI: https://rosaceawise.com
Description: Premium launch, blog, waitlist, and app-content theme for RosaceaWise.
Version: 1.0.3
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rosaceawise
Tags: blog, one-column, custom-logo, featured-images, health, landing-page
*/

:root {
  color-scheme: light;
  --ink: #20232a;
  --muted: #637183;
  --paper: #ffffff;
  --soft: #f4f7f7;
  --line: #dfe7ea;
  --rose: #d64e72;
  --rose-strong: #b83259;
  --coral: #f37458;
  --peach: #ffe5dc;
  --teal: #209f93;
  --teal-soft: #e2f4f1;
  --amber: #f4b64a;
  --shadow: 0 24px 70px rgba(32, 35, 42, 0.13);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #eef3f4;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 243, 244, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23d7e0e2' stroke-width='1'%3E%3Cpath d='M0 30h140M0 80h140M30 0v140M90 0v140'/%3E%3C/g%3E%3Ccircle cx='31' cy='31' r='3' fill='%23f4b8ad'/%3E%3Ccircle cx='91' cy='81' r='3' fill='%2398d4cf'/%3E%3C/svg%3E");
}

body.admin-bar .site-header {
  top: 50px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: white;
  background: var(--rose-strong);
  border-radius: 8px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: fixed;
  inset: 18px 18px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 50px rgba(32, 35, 42, 0.12);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(214, 78, 114, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-weight: 650;
}

.site-nav,
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.menu a,
.header-cta,
.secondary-link,
.primary-cta,
.wp-block-button__link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 850;
}

.site-nav a,
.menu a {
  color: #4b5563;
}

.site-nav a:hover,
.menu a:hover {
  background: #ffe8e8;
  color: var(--rose-strong);
}

.header-cta,
.primary-cta,
.wp-block-button__link {
  color: white;
  background: var(--rose-strong);
  box-shadow: 0 16px 38px rgba(184, 50, 89, 0.24);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(22px, 6vw, 82px) 78px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(255, 255, 255, 0.50) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(238, 243, 244, 0.92));
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.08);
}

.hero-phone {
  position: absolute;
  width: min(28vw, 300px);
  min-width: 190px;
  border: 10px solid #171a20;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: white;
}

.hero-phone-one {
  right: 16vw;
  top: 22%;
  transform: rotate(-5deg);
}

.hero-phone-two {
  right: 4vw;
  bottom: 10%;
  transform: rotate(4deg);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4.2rem, 12vw, 9.6rem);
  line-height: 0.84;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.06;
}

.hero-subtitle {
  margin-bottom: 16px;
  color: var(--rose-strong);
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.hero-text,
.section-heading p,
.showcase-copy p,
.report-copy p,
.creator p,
.final-cta p,
.disclaimer p,
.archive-intro p,
.entry-summary,
.article-content p,
.article-content li {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.app-store-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  min-height: 62px;
  padding: 9px 18px;
  border-radius: var(--radius);
  color: white;
  text-decoration: none;
  background: #171a20;
  box-shadow: 0 18px 44px rgba(23, 26, 32, 0.22);
}

.app-store-button span {
  font-size: 0.76rem;
  font-weight: 750;
}

.app-store-button strong {
  font-size: 1.55rem;
  line-height: 1;
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.trial-note {
  margin-top: 15px;
  color: #7a5662;
  font-weight: 800;
}

.trust-band {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: -42px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-band article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  margin-bottom: 7px;
}

.trust-band span {
  color: var(--muted);
  line-height: 1.45;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 22px 0;
}

.section-heading {
  max-width: 810px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-grid article,
.price-card,
.science-card,
.creator,
.final-cta,
.disclaimer,
  .waitlist-copy,
  .waitlist-form,
  .post-card,
  .report-value-grid article,
  .faq-grid article,
  .article-shell,
  .related-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 55px rgba(32, 35, 42, 0.07);
}

.feature-grid article {
  min-height: 250px;
  padding: 24px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--teal));
  font-weight: 900;
}

.feature-grid p,
.price-card p,
.science-card span {
  color: var(--muted);
  line-height: 1.52;
}

.product-showcase {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  align-items: center;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
}

.screenshot-row figure,
.report-preview {
  margin: 0;
}

.screenshot-row img,
.report-preview img,
.science-card img {
  border: 10px solid #171a20;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.screenshot-row figure:nth-child(2) {
  transform: translateY(26px);
}

.screenshot-row figcaption {
  margin-top: 12px;
  color: #4b5563;
  font-weight: 850;
  text-align: center;
}

.report-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.report-value-grid article {
  padding: 18px;
}

.report-value-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.report-value-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.report-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 38px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 16px;
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--teal), var(--rose));
}

.science-card {
  display: grid;
  grid-template-columns: minmax(240px, 430px) 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
}

.science-card img {
  width: 100%;
}

.science-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.price-card {
  padding: 28px;
}

.price-card.featured {
  border-color: rgba(214, 78, 114, 0.42);
  background: linear-gradient(135deg, rgba(255, 232, 232, 0.92), rgba(255, 255, 255, 0.94));
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 26px;
  padding: 0 14px;
  border-radius: 999px;
  color: #8a3b20;
  background: #ffe0cc;
  font-weight: 900;
}

/* More CSS follows in the same design language. */

.badge.calm {
  color: #0f6c62;
  background: var(--teal-soft);
}

.price-card strong {
  display: block;
  margin: 18px 0 14px;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.9;
}

.creator {
  max-width: 1180px;
  margin: 92px auto 0;
  padding: clamp(28px, 6vw, 70px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    url("assets/images/journal-timeline.jpg") center / cover;
}

.creator > div {
  max-width: 760px;
}

.waitlist-section {
  max-width: 1180px;
  margin: 92px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
  align-items: stretch;
}

.waitlist-copy {
  padding: clamp(26px, 5vw, 54px);
}

.check-list.compact {
  margin-top: 18px;
}

.check-list.compact li {
  padding-top: 12px;
  padding-bottom: 12px;
}

.waitlist-form {
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  align-content: center;
  gap: 16px;
}

.waitlist-form label {
  display: grid;
  gap: 8px;
  color: #445161;
  font-weight: 850;
}

.waitlist-form input[type="text"],
.waitlist-form input[type="email"],
.waitlist-form input[type="url"],
.waitlist-form textarea,
.search-field {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.waitlist-form input:focus,
.waitlist-form textarea:focus,
.search-field:focus {
  outline: 3px solid rgba(214, 78, 114, 0.16);
  border-color: var(--rose);
}

.consent-row,
.honeypot-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px !important;
  color: var(--muted) !important;
  font-size: 0.92rem;
  line-height: 1.45;
}

.consent-row input {
  margin-top: 4px;
}

.honeypot-row {
  position: absolute;
  left: -9999px;
}

.waitlist-form .primary-cta {
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.form-note,
.waitlist-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.waitlist-message {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: #0f6c62;
  font-weight: 850;
}

.waitlist-message.error {
  background: #ffe8e8;
  color: var(--rose-strong);
}

.blog-waitlist {
  max-width: 1180px;
  margin: 42px auto 64px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
  align-items: stretch;
}

.blog-empty {
  grid-column: 1 / -1;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.blog-empty h3 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.blog-empty p {
  max-width: 720px;
  margin-bottom: 18px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.faq-grid article {
  padding: 24px;
}

.faq-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.final-cta {
  max-width: 900px;
  margin: 92px auto 0;
  padding: clamp(32px, 7vw, 76px);
  text-align: center;
}

.final-cta img {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(214, 78, 114, 0.24);
}

.primary-cta {
  margin-top: 18px;
  min-height: 54px;
  padding-inline: 24px;
}

.disclaimer {
  max-width: 1180px;
  margin: 42px auto 0;
  padding: 22px;
}

.disclaimer p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.site-footer {
  max-width: 1180px;
  margin: 60px auto 0;
  padding: 28px 22px 40px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.archive-hero,
.article-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 142px 22px 32px;
}

.archive-intro,
.article-intro {
  max-width: 820px;
}

.post-grid,
.related-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card,
.related-card {
  overflow: hidden;
}

.post-card a,
.related-card a {
  color: inherit;
  text-decoration: none;
}

.post-card-image {
  aspect-ratio: 16 / 9;
  background: var(--teal-soft);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body,
.related-card {
  padding: 22px;
}

.post-meta,
.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.post-card h2,
.post-card h3 {
  margin-top: 12px;
}

.article-shell {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
}

.article-featured {
  aspect-ratio: 16 / 8;
  background: var(--teal-soft);
}

.article-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: clamp(26px, 6vw, 64px);
}

.article-content h2,
.article-content h3 {
  margin-top: 1.4em;
}

.article-content a {
  color: var(--rose-strong);
  font-weight: 850;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 22px;
  border-left: 4px solid var(--teal);
  background: #f7fbfa;
  color: #445161;
  font-weight: 750;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.article-tags a,
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0f6c62;
  background: var(--teal-soft);
  text-decoration: none;
  font-weight: 850;
}

.app-link-banner {
  max-width: 980px;
  margin: 22px auto 0;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(214, 78, 114, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 232, 232, 0.92), rgba(255, 255, 255, 0.94));
}

.pagination {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 0 22px;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-decoration: none;
  font-weight: 850;
}

.page-numbers.current {
  color: white;
  background: var(--rose-strong);
}

.not-found {
  max-width: 760px;
  margin: 0 auto;
  padding: 142px 22px 60px;
}

@media (max-width: 980px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    position: sticky;
    top: 0;
    inset: auto;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav,
  .menu {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  }

  .hero-phone {
    opacity: 0.22;
  }

  .trust-band,
  .feature-grid,
  .product-showcase,
  .report-section,
  .science-card,
  .pricing-grid,
  .waitlist-section,
  .blog-waitlist,
  .report-value-grid,
  .faq-grid,
  .post-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .trust-band {
    margin: 0 18px;
  }

  .screenshot-row {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .screenshot-row figure:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .header-cta {
    min-height: 38px;
    padding-inline: 12px;
  }

  .hero {
    padding: 46px 18px 54px;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 3.8rem);
    line-height: 0.92;
  }

  h2 {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.75rem;
  }

  .hero-text,
  .section-heading p,
  .showcase-copy p,
  .report-copy p,
  .creator p,
  .final-cta p {
    font-size: 1rem;
  }

  .hero-phone-one {
    right: -56px;
    top: 28%;
  }

  .hero-phone-two {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
  }

  .app-store-button,
  .secondary-link,
  .primary-cta {
    width: 100%;
  }

  .trust-band {
    gap: 1px;
  }

  .section {
    padding: 70px 18px 0;
  }

  .feature-grid article {
    min-height: 0;
  }

  .screenshot-row {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .screenshot-row img,
  .report-preview img,
  .science-card img {
    border-width: 8px;
  }

  .price-card strong {
    font-size: 3.25rem;
  }

  .creator,
  .waitlist-section,
  .blog-waitlist,
  .final-cta,
  .disclaimer {
    margin-inline: 18px;
  }

  .waitlist-section,
  .blog-waitlist {
    padding: 0;
  }

  .app-link-banner,
  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .archive-hero,
  .article-hero {
    padding-top: 64px;
  }
}
