/* ============================================================
   Soap Studio — soapstudio.app
   Palette drawn from the app icon: warm off-white base,
   violet/plum accents, soft lavender highlights.
   Typography: Playfair Display + Source Serif 4
   ============================================================ */

/* — Variables — */
:root {
  --cream:           #faf8fc;
  --parchment:       #f2eef8;
  --warm-white:      #fdfcfe;
  --plum:            #5a3b7a;
  --plum-light:      #7a5a9a;
  --plum-pale:       #ede6f7;
  --violet:          #8a5db0;
  --violet-light:    #b08fd4;
  --violet-pale:     #f0eaf9;
  --rose-purple:     #c47ab0;
  --mauve:           #9b7ab8;
  --ink:             #1e1628;
  --ink-mid:         #3d2e52;
  --ink-light:       #7a6a8e;
  --rule:            #ddd5ea;
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Source Serif 4', Georgia, serif;
  --max-width:       1100px;
  --radius:          6px;
}

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* — Header & Nav — */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,252,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 0 2rem;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--plum);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.logo-img {
  height: 38px;
  width: 38px;
  border-radius: 9px;
  object-fit: cover;
}
.logo-text-fallback { display: none; }
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--plum);
  border-bottom-color: var(--violet);
}

/* — Buttons — */
.btn-primary {
  display: inline-block;
  background: var(--plum);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--plum-light);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--plum);
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover {
  background: var(--plum);
  color: #fff;
}
.btn-text {
  color: var(--violet);
  font-weight: 400;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--violet-light);
  transition: color 0.2s;
}
.btn-text:hover { color: var(--plum); }

/* — Hero — */
.hero {
  position: relative;
  background: var(--parchment);
  overflow: hidden;
  padding: 5rem 2rem 4rem;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 75% 40%, rgba(138,93,176,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(196,122,176,0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 10%, rgba(90,59,122,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  grid-column: 1;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 1rem;
}
.hero-title {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--plum);
}
.hero-body {
  grid-column: 1;
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.78;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-cta {
  grid-column: 1;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.hero-note {
  grid-column: 1;
  font-size: 0.8rem;
  color: var(--ink-light);
  letter-spacing: 0.02em;
}
.hero-visual {
  grid-column: 2;
  grid-row: 1 / 6;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* App icon display in hero */
.app-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-icon {
  width: 180px;
  height: 180px;
  border-radius: 40px;
  object-fit: cover;
  box-shadow:
    0 20px 60px rgba(90,59,122,0.30),
    0 6px 20px rgba(90,59,122,0.18),
    0 0 0 1px rgba(138,93,176,0.15);
}
.hero-icon-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--plum);
  letter-spacing: 0.02em;
}
.hero-icon-sub {
  font-size: 0.8rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* — Pillars — */
.pillars {
  padding: 5rem 2rem;
  background: var(--warm-white);
}
.pillars-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.pillar {
  padding: 2rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--violet-light);
}
.pillar-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.75rem;
}
.pillar p {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* — About strip — */
.about-strip {
  padding: 5rem 2rem;
  background: var(--violet-pale);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
.about-text p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.about-text .btn-text { margin-top: 0.5rem; display: inline-block; }
.quality-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.quality-list li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}
.quality-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--violet-light);
  font-size: 0.65rem;
  top: 0.38em;
}

/* — Manual teaser — */
.manual-teaser {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--plum) 0%, #7040a0 100%);
}
.manual-teaser-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.manual-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.manual-teaser h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 1rem;
}
.manual-teaser p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.75;
}
.manual-teaser .btn-primary {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  backdrop-filter: blur(4px);
}
.manual-teaser .btn-primary:hover {
  background: rgba(255,255,255,0.25);
}

/* — Page hero (inner pages) — */
.page-hero {
  background: var(--parchment);
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(138,93,176,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.page-hero-sub {
  font-size: 1rem;
  color: var(--ink-mid);
  max-width: 560px;
}

/* — Features page — */
.features-body { padding: 4rem 2rem 6rem; }
.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.feature-block {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: 720px;
}
.feature-block:last-child { border-bottom: none; }
.feature-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.feature-block h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}
.feature-block p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-list li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.55;
}
.feature-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--violet-light);
}

/* — Manual page — */
.manual-body { padding: 4rem 2rem 6rem; }
.manual-inner {
  max-width: 720px;
  margin: 0 auto;
}
.manual-download-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--plum-pale);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.download-icon { font-size: 2rem; flex-shrink: 0; }
.download-text { flex: 1; min-width: 200px; }
.download-text h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.download-text p {
  font-size: 0.875rem;
  color: var(--ink-mid);
}
.manual-note {
  font-size: 0.85rem;
  color: var(--ink-light);
  font-style: italic;
  margin-bottom: 3rem;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
}
.manual-toc h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.toc-section {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.toc-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--rule);
  width: 2rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.15rem;
}
.toc-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.75rem;
}
.toc-body ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.toc-body ul li {
  font-size: 0.875rem;
  color: var(--ink-mid);
  padding-left: 1rem;
  position: relative;
}
.toc-body ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--violet-light);
}

/* — Contact page — */
.contact-body { padding: 4rem 2rem 6rem; }
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.contact-card {
  padding: 2.5rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 1rem;
}
.contact-card p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-email {
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  font-style: italic;
}
.contact-email a {
  color: var(--violet);
  border-bottom: 1px solid var(--violet-light);
  transition: color 0.2s;
}
.contact-email a:hover { color: var(--plum); }
.contact-card .feature-list { margin-top: 0.75rem; }

/* — Footer — */
.site-footer {
  background: var(--ink);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: 0.02em;
  flex: 1;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242,238,248,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--parchment); }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(242,238,248,0.35);
  flex: 1;
  text-align: right;
}

/* — Responsive — */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .hero-eyebrow, .hero-title, .hero-body, .hero-cta, .hero-note { grid-column: 1; }
  .pillars-inner { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .pillars-inner { grid-template-columns: 1fr; }
  .nav-links { gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-copy { text-align: left; }
  .manual-download-card { flex-direction: column; align-items: flex-start; }
}
