/*
Theme Name: SecondSoil
Theme URI: https://secondsoil.app/
Author: Grant Barnard / SecondSoil
Description: Custom theme for the SecondSoil landing page and legal pages.
Version: 1.0.0
Text Domain: secondsoil
*/

:root {
  --ink: #171419;
  --ink-soft: #473f49;
  --orange: #ea8a31;
  --orange-dark: #d36f1b;
  --paper: #f5f1eb;
  --mist: #efe7df;
  --panel: rgba(255, 255, 255, 0.62);
  --line: rgba(23, 20, 25, 0.1);
  --muted: #6d6170;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(234, 138, 49, 0.12), transparent 28%),
    linear-gradient(180deg, #f9f5f1 0%, var(--paper) 100%);
  font-family: "Cabin", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button, input {
  font: inherit;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
}

.site-header--dark {
  position: sticky;
  top: 0;
  background: rgba(17, 13, 19, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: hidden;
}

.logo img {
  width: 180px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
  transform: translateY(-1px);
}

.nav-links .nav-cta {
  padding: 0.72rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(17, 13, 19, 0.42);
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: white;
  background-color: #171419;
  background-image: url("https://images.unsplash.com/photo-1512470876302-972faa2aa9a4?auto=format&fit=crop&w=2200&q=88");
  background-position: center 52%;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(17, 13, 19, 0.88) 0%, rgba(17, 13, 19, 0.68) 36%, rgba(17, 13, 19, 0.28) 100%),
    radial-gradient(circle at 80% 20%, rgba(234, 138, 49, 0.18), transparent 30%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to top, rgba(17, 13, 19, 0.26), transparent);
}



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

h1 {
  max-width: 720px;
  margin: 0 auto 1.2rem;
  font-family: "Roboto Slab", serif;
  font-size: clamp(2.9rem, 5vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-copy > p {
  max-width: 680px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.35vw, 1.35rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1px solid rgba(23, 20, 25, 0.1);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #f8f5f1;
  box-shadow: 0 12px 28px rgba(23, 20, 25, 0.08);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  background: rgba(17, 13, 19, 0.42);
}

.button.secondary:hover {
  background: rgba(17, 13, 19, 0.62);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.store-button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.store-button img {
  width: auto;
  height: 100%;
}

.store-button.google-play img {
  width: 176px;
  object-fit: cover;
  object-position: center;
}

.intro {
  padding: clamp(5rem, 7vw, 8rem) 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,255,255,0.2));
}

.intro-grid {
  display: flex;
  justify-content: center;
}

.section-label {
  margin: 0 0 0.8rem;
  color: var(--orange-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1.3rem;
  font-family: "Roboto Slab", serif;
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.intro-copy {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: clamp(1.13rem, 1.8vw, 1.52rem);
  text-align: center;
}

.word-break {
  display: inline;
  color: var(--orange-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.features {
  padding: clamp(5rem, 7vw, 8rem) 0;
  background: linear-gradient(180deg, #f2ece6 0%, var(--mist) 100%);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 3rem;
}

.section-heading h2 {
  max-width: 620px;
  margin: 0;
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.features .section-heading {
  display: block;
  max-width: 760px;
  margin: 0 auto 3.2rem;
  text-align: center;
}

.features .section-heading h2 {
  max-width: none;
  margin-bottom: 0.9rem;
}

.features .section-heading > p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.topic-list {
  padding-top: 5rem;
  padding-bottom: 4.5rem;
}

.topic-list .section-heading {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.topic-list .section-heading h2 {
  max-width: 700px;
  margin: 0 auto 0.8rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.topic-list .section-heading > p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
}

.topic-list h2 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 3.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.topic-list .col-lg-5.text-lg-end p {
  max-width: 480px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  max-width: 980px;
  margin: 0 auto;
}

.feature {
  min-height: 0;
  padding: 1.9rem 1.5rem;
  border: 1px solid rgba(23, 20, 25, 0.06);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 32px rgba(23, 20, 25, 0.04);
}

.feature h3 {
  margin: 0 0 0.75rem;
  font-family: "Roboto Slab", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.feature p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 1.01rem;
}

.topic-list .feature-grid {
  max-width: 1080px;
  gap: 1rem;
  justify-items: center;
}

.topic-list .check-list {
  max-width: 780px;
  margin: 2.5rem auto 0;
}

.topic-list .check-list li {
  padding-left: 2.2rem;
  font-size: 1.05rem;
}

.topic-list .feature h3 {
  margin: 0;
  font-family: "Cabin", sans-serif;
  font-size: clamp(1.02rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.journey {
  padding: clamp(5rem, 7vw, 8rem) 0;
}

.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.journey-art {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(239,231,223,0.32));
}

.journey-art img {
  width: 90%;
  max-height: 480px;
  object-fit: contain;
}

.journey-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.check-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.95rem 0 0.95rem 2rem;
  border-top: 1px solid rgba(23, 20, 25, 0.09);
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange-dark);
  font-weight: 700;
}

.blog-shell {
  padding: clamp(4rem, 6vw, 7rem) 0;
}

.blog-shell .blog-hero {
  margin-bottom: 2.5rem;
}

.blog-shell .blog-hero h1 {
  margin: 0;
  font-family: "Roboto Slab", serif;
  font-size: 2.125rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.blog-post h1 {
  font-family: "Roboto Slab", serif;
  font-size: 38px;
  line-height: 1.2;
}

.blog-shell .card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 20, 25, 0.06);
}

.blog-shell .card-img-top {
  height: 220px;
  object-fit: cover;
}

.blog-shell .card h2,
.blog-shell .card h3,
.blog-shell .card h4,
.blog-shell .card h5,
.blog-shell .card h6 {
  margin-top: 0;
  font-family: "Roboto Slab", serif;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.blog-shell .card h2 {
  font-size: 1.75rem;
}

.blog-shell .card h3 {
  font-size: 1.375rem;
}

.blog-shell .card h4,
.blog-shell .card h5,
.blog-shell .card h6 {
  font-size: 1.125rem;
}

.blog-shell .card h2 a,
.blog-shell .card h3 a,
.blog-shell .card h4 a,
.blog-shell .card h5 a,
.blog-shell .card h6 a {
  color: var(--ink);
}

.blog-shell .card h2 a:hover,
.blog-shell .card h3 a:hover,
.blog-shell .card h4 a:hover,
.blog-shell .card h5 a:hover,
.blog-shell .card h6 a:hover {
  color: var(--orange-dark);
}

.blog-single-shell {
  padding: clamp(4rem, 6vw, 7rem) 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(245, 241, 235, 0.92));
}

.blog-post {
  padding-bottom: 2rem;
}

.blog-single-header {
  margin-bottom: 2rem;
}

.blog-featured-image {
  max-width: 1180px;
  max-height: 600px;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 1px solid rgba(23, 20, 25, 0.06);
  background: #fff;
}

.blog-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
}

.blog-content,
.blog-content p,
.blog-content li,
.blog-content blockquote,
.blog-content figcaption {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.blog-shell .card p,
.blog-shell .card li,
.blog-shell .card .text-body-secondary {
  font-size: 1rem;
  line-height: 1.6;
}

.blog-content {
  max-width: 740px;
  margin: 0 auto;
}

.blog-content > * + * {
  margin-top: 1.25rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-family: "Roboto Slab", serif;
  line-height: 1.2;
}

.blog-content h2 { font-size: clamp(1.75rem, 2vw, 2.2rem); }
.blog-content h3 { font-size: clamp(1.5rem, 1.8vw, 1.8rem); }
.blog-content h4 { font-size: clamp(1.25rem, 1.5vw, 1.5rem); }

.blog-content img,
.blog-content figure,
.blog-content iframe,
.blog-content video {
  max-width: 100%;
  border-radius: 1rem;
}

.related-posts {
  padding-top: 2rem;
}

.related-posts h2 {
  font-family: "Roboto Slab", serif;
  font-size: clamp(1.75rem, 2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.pricing {
  padding: clamp(5rem, 7vw, 8rem) 0;
  background: linear-gradient(180deg, #f1e9e0 0%, var(--mist) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.price-tier {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid rgba(23, 20, 25, 0.06);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.55);
  flex-direction: column;
  box-shadow: 0 18px 36px rgba(23, 20, 25, 0.04);
}

.price-tier.featured {
  background: #fff;
  box-shadow: 0 22px 40px rgba(23, 20, 25, 0.08);
}

.price-tier.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, var(--orange), #f4c27b);
}

.tier-name {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: baseline;
  min-height: 60px;
  margin-bottom: 1rem;
  font-family: "Roboto Slab", serif;
  font-size: clamp(2.5rem, 3vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
}

.price span {
  margin-left: 0.45rem;
  color: var(--muted);
  font-family: "Cabin", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}

.price-tier > p {
  min-height: 56px;
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.price-features {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
}

.price-features li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1.5rem;
  color: var(--ink-soft);
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange-dark);
  font-weight: 700;
}

.price-tier .button {
  width: 100%;
  margin-top: auto;
}

.price-tier.featured .button {
  color: white;
  background: var(--ink);
}

.price-tier.featured .button:hover {
  background: #19151c;
}

.advertise {
  padding: clamp(5rem, 7vw, 8rem) 0;
  color: white;
  background: linear-gradient(180deg, #171419 0%, #201b22 100%);
}

.advertise-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.advertise h2 {
  margin: 0;
}

.advertise-copy > p {
  color: rgba(255, 255, 255, 0.72);
}

.advertise .check-list li {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.download-section {
  padding: clamp(4.75rem, 6vw, 7.5rem) 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), var(--mist));
}

.download-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.download-section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.download-copy p {
  max-width: 560px;
  margin-bottom: 1.7rem;
  color: var(--muted);
  font-size: 1.1rem;
}

footer {
  padding: 2.8rem 0;
  background: #221d26;
  color: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.3rem 3.2rem;
}

.footer-inner img {
  width: 132px;
}

.footer-inner p {
  grid-column: 1;
  margin: 0;
  font-size: 0.82rem;
}

.footer-links {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  max-width: 720px;
  justify-self: end;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: white;
}

.reveal h1 {
  animation: reveal 720ms 80ms cubic-bezier(.22, 1, .36, 1) both;
}

.reveal > p {
  animation: reveal 720ms 180ms cubic-bezier(.22, 1, .36, 1) both;
}

.reveal .store-buttons {
  animation: reveal 720ms 280ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none !important;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #221d26;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
  }
  .nav-links a { display: block; padding: 11px 12px; }
  .nav-links .nav-cta { border: 0; }
  .hero, .hero-inner { min-height: 680px; }
  .hero { background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(32, 27, 36, 0.86), rgba(32, 27, 36, 0.46) 75%); }
  .hero-inner { padding-top: 120px; }
  .intro-grid, .advertise-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { gap: 56px 64px; }
  .journey-grid { grid-template-columns: 1fr; gap: 54px; }
  .journey-art { min-height: 450px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-tier { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .price-tier:last-child { border-bottom: 0; }
  .price-tier > p { min-height: auto; }
  .price-tier .button { margin-top: 12px; }
  .download-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 580px) {
  .nav { height: 78px; }
  .logo img { width: 138px; }
  .hero, .hero-inner { min-height: 690px; }
  .hero { background-position: 61% center; }
  .hero::before { background: linear-gradient(90deg, rgba(32, 27, 36, 0.9), rgba(32, 27, 36, 0.55)); }
  .hero-inner { padding-top: 110px; padding-bottom: 42px; }
  h1 { font-size: 47px; }
  .hero-copy > p { font-size: 17px; }
  .intro, .features, .journey, .pricing, .advertise { padding: 78px 0; }
  .intro-copy { font-size: 19px; }
  .section-heading { display: block; margin-bottom: 40px; }
  .section-heading > p { margin-top: 20px; }
  .feature-grid { grid-template-columns: 1fr; gap: 42px; }
  .features .section-heading { margin-bottom: 56px; text-align: left; }
  .features .section-heading > p { margin: 18px 0 0; }
  .feature h3 { font-size: 25px; }
  .journey-art { min-height: 340px; }
  .download-section { padding: 72px 0; }
  .store-button { height: 46px; }
  .store-button.google-play img { width: 154px; }
  .footer-inner { display: flex; align-items: flex-start; flex-direction: column; }
  .footer-links { display: flex; justify-content: flex-start; }

    main {
      overflow-x: hidden;
    }
}