/*
Theme Name: PeriodCode
Theme URI: https://periodcode.com
Author: PeriodCode
Author URI: https://periodcode.com
Description: Custom WordPress theme for PeriodCode, the app that helps men understand the cycle and support with more empathy.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: periodcode
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template, translation-ready
*/

:root {
  color-scheme: light;
  --ink: #20130c;
  --muted: #766a61;
  --paper: #f6eee2;
  --paper-soft: #fbf6ed;
  --paper-warm: #f1e6d8;
  --line: rgba(42, 27, 18, 0.12);
  --line-strong: rgba(42, 27, 18, 0.2);
  --accent: #df6548;
  --accent-dark: #b94a34;
  --green: #339263;
  --gold: #dc970b;
  --rose: #b94d4a;
  --dark: #170d08;
  --white: #fffdf9;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 860px;
  --wide-width: 1080px;
  --header-height: 48px;
  --radius: 8px;
  --shadow: 0 18px 55px rgba(48, 30, 18, 0.12);
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section--warm {
  background: var(--paper-warm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  height: var(--header-height);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header.scrolled {
  box-shadow: 0 10px 34px rgba(32, 19, 12, 0.06);
}

.site-header__nav {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  height: var(--header-height);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
}

img.site-logo__img {
  display: none;
}

.site-logo::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 47%, transparent 0 4px, #fff8ed 4.5px 5.8px, transparent 6px),
    var(--ink);
}

.site-logo::after {
  content: "PeriodCode";
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 780;
  letter-spacing: 0;
}

.dev-pill {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 21px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9b8e82;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
}

.main-nav a {
  color: #6b5f55;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-dark);
}

.header-actions {
  display: none;
}

.mobile-toggle {
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
}

.mobile-toggle svg {
  width: 20px;
  height: 20px;
}

.lang-switcher {
  position: relative;
  margin-left: 4px;
}

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #6b5f55;
  font: 700 0.64rem/1 var(--font-body);
  cursor: pointer;
}

.lang-switcher__flag,
.lang-switcher__arrow {
  display: none;
}

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 132px;
  padding: 6px;
  list-style: none;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lang-switcher__dropdown.open {
  display: block;
}

.lang-switcher__item a {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.lang-switcher__item a:hover,
.lang-switcher__item--active a {
  background: var(--paper-warm);
  color: var(--ink);
}

.hero {
  min-height: 625px;
  padding: 140px 0 90px;
  background: var(--paper);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  align-items: center;
  gap: 74px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.55);
  color: #7d7167;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero__badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #eee4d8;
  color: var(--muted);
  font-size: 0.58rem;
}

.hero__title {
  max-width: 600px;
  font-size: clamp(3.55rem, 7.1vw, 5.55rem);
}

.hero__title span {
  display: block;
  color: var(--accent);
  font-style: italic;
}

.hero__subtitle {
  max-width: 475px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 142px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #140c08;
  color: #fff8ed;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 0.95;
  box-shadow: 0 10px 24px rgba(32, 19, 12, 0.1);
}

.store-badge:hover {
  color: #fff8ed;
  background: #2a1710;
  transform: translateY(-1px);
}

.store-badge small {
  display: block;
  margin-bottom: 1px;
  font-family: var(--font-body);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-badge__icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff8ed;
}

.hero__inside-link {
  color: #4e4138;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 34px;
  list-style: none;
}

.hero__trust li {
  position: relative;
  padding-left: 17px;
  color: #7d7167;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 5px;
  border-left: 2px solid #69a571;
  border-bottom: 2px solid #69a571;
  transform: rotate(-45deg);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.app-card {
  width: 318px;
  min-height: 560px;
  padding: 14px 14px 0;
  background:
    linear-gradient(145deg, #fbf6f3 0%, #eadeda 62%, #d7e7ee 100%);
  border: 1px solid rgba(42, 27, 18, 0.08);
  border-radius: 26px;
  box-shadow:
    0 26px 70px rgba(43, 31, 20, 0.18),
    inset 0 0 0 6px rgba(255, 255, 255, 0.38);
  overflow: hidden;
}

.app-card__top {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  margin-bottom: 17px;
}

.app-card__top strong {
  color: #090a0b;
  font-size: 1.22rem;
  font-weight: 800;
  text-align: center;
}

.app-card__profile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.app-card__profile::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid #10262e;
  border-radius: 999px;
  box-shadow: 0 10px 0 -3px #10262e;
  opacity: 0.78;
}

.app-card__today {
  padding: 25px 18px 17px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(191, 184, 173, 0.55);
  border-radius: 16px;
  box-shadow: 0 20px 34px rgba(20, 11, 8, 0.06);
  text-align: center;
}

.app-card__phase-icon {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 0 auto 15px;
  background: #ff6573;
  border-radius: 999px 999px 999px 6px;
  transform: rotate(-45deg);
}

.app-card__phase-icon::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  width: 6px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
}

.app-card__today h2 {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.05;
  color: #090a0b;
}

.app-card__today > p {
  margin-top: 8px;
  color: #516872;
  font-size: 0.92rem;
  font-weight: 800;
}

.app-card__period-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 15px;
  border: 1px solid rgba(255, 101, 115, 0.3);
  border-radius: 999px;
  background: rgba(255, 101, 115, 0.16);
  color: #090a0b;
  font-size: 0.8rem;
  font-weight: 800;
}

.app-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 25px;
}

.app-card__metrics div {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.app-card__metric-label {
  color: #516872;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.app-card__metric-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
}

.app-card__metric-icon--mood {
  border: 2px solid #9ccc65;
  border-radius: 999px;
}

.app-card__metric-icon--mood::before,
.app-card__metric-icon--mood::after {
  content: "";
  position: absolute;
}

.app-card__metric-icon--mood::before {
  left: 7px;
  top: 9px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #9ccc65;
  box-shadow: 9px 0 0 #9ccc65;
}

.app-card__metric-icon--mood::after {
  left: 8px;
  top: 16px;
  width: 11px;
  height: 5px;
  border-bottom: 2px solid #9ccc65;
  border-radius: 0 0 999px 999px;
}

.app-card__metric-icon--energy::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 2px;
  width: 11px;
  height: 25px;
  background: #f4ac22;
  clip-path: polygon(45% 0, 100% 0, 65% 40%, 100% 40%, 35% 100%, 48% 55%, 0 55%);
}

.app-card__metric-icon--libido::before,
.app-card__metric-icon--libido::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 15px;
  height: 22px;
  border-radius: 15px 15px 0 0;
  background: transparent;
  border: 2px solid #ff6573;
  border-bottom: 0;
}

.app-card__metric-icon--libido::before {
  left: 5px;
  transform: rotate(-45deg);
}

.app-card__metric-icon--libido::after {
  right: 5px;
  transform: rotate(45deg);
}

.app-card__metrics b {
  color: #090a0b;
  font-size: 0.88rem;
  font-weight: 800;
}

.app-card__description {
  margin-top: 22px;
  padding: 15px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #222;
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.45;
}

.app-card__timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 22px;
  color: #090a0b;
}

.app-card__timeline-head strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.app-card__timeline-head span {
  color: #516872;
  font-size: 0.68rem;
  font-weight: 700;
}

.app-card__cycle-track {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 8fr 3fr 12fr;
  height: 20px;
  margin-top: 14px;
  overflow: visible;
  border: 1px solid rgba(191, 184, 173, 0.55);
  border-radius: 999px;
}

.app-card__cycle-track span {
  display: block;
}

.app-card__track-menstrual {
  background: #ff6573;
  border-radius: 999px 0 0 999px;
}

.app-card__track-follicular {
  background: #6ea8ff;
}

.app-card__track-ovulation {
  background: #ffc247;
}

.app-card__track-luteal {
  background: #9b72d9;
  border-radius: 0 999px 999px 0;
}

.app-card__cycle-track i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 23px;
  height: 23px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #6ea8ff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%);
}

.app-card__track-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-top: 7px;
  color: #516872;
  font-size: 0.66rem;
  font-weight: 800;
}

.app-card__track-labels span:first-child {
  color: #10262e;
}

.app-card__track-labels span:last-child {
  text-align: right;
}

.app-card__nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  gap: 2px;
  margin: 12px -14px 0;
  padding: 8px 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(191, 184, 173, 0.38);
}

.app-card__nav span {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  color: #3e3935;
}

.app-card__nav span.is-active i {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #ffd0c7;
}

.app-card__nav i {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
}

.app-card__nav b {
  color: #090a0b;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
}

.app-card__nav-home::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  width: 14px;
  height: 13px;
  background: #1e4b55;
  clip-path: polygon(50% 0, 100% 42%, 85% 42%, 85% 100%, 15% 100%, 15% 42%, 0 42%);
}

.app-card__nav-learn::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 17px;
  height: 12px;
  background: #5f5752;
  clip-path: polygon(0 25%, 50% 0, 100% 25%, 50% 55%);
  box-shadow: 0 5px 0 -1px #5f5752;
}

.app-card__nav-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 15px;
  width: 18px;
  height: 10px;
  border-top: 3px solid #5f5752;
  border-right: 3px solid #5f5752;
  transform: skewY(-25deg);
}

.app-card__nav-history::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 16px;
  height: 16px;
  border: 3px solid #5f5752;
  border-left-color: transparent;
  border-radius: 999px;
}

.app-card__nav-settings::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  border: 4px dotted #5f5752;
  border-radius: 999px;
}

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

.section-heading p {
  margin-bottom: 10px;
  color: #95877a;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

.section-heading h2 em,
.privacy .section-heading h2 span {
  color: var(--accent);
  font-style: italic;
}

.section-heading span {
  display: block;
  max-width: 470px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 50px;
  max-width: none;
}

.section-heading--split span {
  margin-top: 17px;
}

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

.phase-card {
  min-height: 210px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf1;
  overflow: hidden;
}

.phase-card--menstrual {
  background: linear-gradient(135deg, #fffaf1 0%, #fde5df 100%);
}

.phase-card--follicular {
  background: linear-gradient(135deg, #fffaf1 0%, #def2e8 100%);
}

.phase-card--ovulation {
  background: linear-gradient(135deg, #fffaf1 0%, #fbefd0 100%);
}

.phase-card--luteal {
  background: linear-gradient(135deg, #fffaf1 0%, #f3e2e4 100%);
}

.phase-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf1;
  font-weight: 800;
  font-size: 0.8rem;
}

.phase-card--follicular .phase-card__icon {
  background: var(--green);
}

.phase-card--ovulation .phase-card__icon {
  background: var(--gold);
}

.phase-card--luteal .phase-card__icon {
  background: var(--rose);
}

.phase-card__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.phase-card h3 {
  font-size: 1.45rem;
}

.phase-card__title-row span {
  flex: 0 0 auto;
  color: #86796f;
  font-size: 0.58rem;
  font-weight: 800;
}

.phase-card p {
  color: #5e5148;
  font-size: 0.78rem;
  line-height: 1.65;
}

.phase-card small {
  display: block;
  margin-top: 22px;
  color: #9a8c80;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.features {
  background: var(--paper);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf1;
}

.feature-card {
  min-height: 158px;
  padding: 26px 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card:nth-child(3n) {
  border-right: 0;
}

.feature-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.feature-card__icon,
.privacy-card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #eadccf;
  position: relative;
}

.feature-card__icon::before,
.feature-card__icon::after,
.privacy-card__icon::before,
.privacy-card__icon::after {
  content: "";
  position: absolute;
  border-color: #6f6258;
}

.feature-card__icon--target::before {
  inset: 8px;
  border: 2px solid #6f6258;
  border-radius: 999px;
}

.feature-card__icon--target::after {
  left: 13px;
  top: 13px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #6f6258;
}

.feature-card__icon--calendar::before {
  inset: 8px 7px 7px;
  border: 2px solid #6f6258;
  border-radius: 3px;
}

.feature-card__icon--book::before {
  left: 7px;
  right: 7px;
  top: 8px;
  bottom: 7px;
  border: 2px solid #6f6258;
  border-radius: 2px;
}

.feature-card__icon--bell::before {
  left: 8px;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 2px solid #6f6258;
  border-radius: 8px 8px 3px 3px;
}

.feature-card__icon--users::before {
  left: 7px;
  top: 8px;
  width: 6px;
  height: 6px;
  border: 2px solid #6f6258;
  border-radius: 999px;
}

.feature-card__icon--users::after {
  right: 7px;
  top: 11px;
  width: 6px;
  height: 6px;
  border: 2px solid #6f6258;
  border-radius: 999px;
}

.feature-card__icon--database::before {
  left: 7px;
  top: 8px;
  width: 14px;
  height: 12px;
  border: 2px solid #6f6258;
  border-radius: 999px / 45%;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.08;
}

.feature-card p {
  color: #66594f;
  font-size: 0.76rem;
  line-height: 1.62;
}

.how-it-works {
  background: var(--dark);
  border-top-color: #2c1f17;
}

.section-heading--dark p {
  color: #75675e;
}

.section-heading--dark h2 {
  max-width: 560px;
  color: #fff4e9;
}

.section-heading--dark span {
  color: #b7a79c;
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  min-height: 160px;
  padding: 27px 24px;
  border: 1px solid rgba(255, 244, 233, 0.14);
  border-radius: 12px;
  background: rgba(255, 244, 233, 0.035);
}

.step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 2.45rem;
  line-height: 0.9;
}

.step h3 {
  margin-bottom: 7px;
  color: #fff4e9;
  font-size: 1.15rem;
  line-height: 1.05;
}

.step p {
  color: #b7a79c;
  font-size: 0.76rem;
  line-height: 1.58;
}

.privacy {
  background: var(--paper);
}

.privacy__grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.6fr);
  gap: 58px;
  align-items: start;
}

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

.privacy-card {
  min-height: 190px;
  padding: 25px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf1;
}

.privacy-card__icon {
  background: #fae3dd;
}

.privacy-card__icon::before {
  inset: 8px;
  border: 2px solid #e78978;
  border-radius: 999px;
}

.privacy-card h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.1;
}

.privacy-card p {
  color: #66594f;
  font-size: 0.76rem;
  line-height: 1.62;
}

.cta {
  padding-top: 0;
  background: var(--paper);
  border-top: 0;
}

.cta__panel {
  min-height: 300px;
  padding: 58px 50px;
  border: 1px solid rgba(223, 101, 72, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 35%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #ffe5c5 0%, #ffc6b7 100%);
}

.cta h2 {
  max-width: 590px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 4.8vw, 3.55rem);
}

.cta p {
  max-width: 520px;
  margin-bottom: 28px;
  color: #766056;
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer {
  padding: 58px 0 24px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 52px;
}

.footer__brand .site-logo {
  margin-bottom: 15px;
}

.footer__brand p {
  max-width: 260px;
  color: #66594f;
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer__heading {
  margin-bottom: 15px;
  color: #9a8c80;
  font: 800 0.62rem/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer__links a,
.footer__links li {
  color: #66594f;
  font-size: 0.76rem;
  line-height: 1.35;
}

.footer__links a:hover {
  color: var(--accent-dark);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #8a7c71;
  font-size: 0.68rem;
}

.footer__bottom .footer__links {
  flex-direction: row;
}

.entry-content {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: 130px 0 80px;
}

.entry-content h1 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.entry-content h2 {
  margin: 46px 0 16px;
  font-size: 2rem;
}

.entry-content h3 {
  margin: 34px 0 12px;
  font-size: 1.45rem;
}

.entry-content p,
.entry-content li {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.entry-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero {
  padding: 130px 0 60px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.contact-page {
  min-height: 720px;
  padding: 140px 0 90px;
  background: var(--paper);
}

.contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 58px;
  align-items: start;
}

.contact-page__eyebrow {
  margin-bottom: 12px;
  color: #95877a;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-page__intro h1 {
  max-width: 420px;
  font-size: clamp(3rem, 6vw, 4.8rem);
}

.contact-page__intro > p:not(.contact-page__eyebrow) {
  max-width: 410px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-page__email {
  display: inline-flex;
  margin-top: 28px;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.contact-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf1;
  box-shadow: 0 18px 55px rgba(48, 30, 18, 0.08);
}

.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__notice {
  margin-bottom: 18px;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.contact-form__notice--success {
  color: #1d5e3f;
  background: rgba(51, 146, 99, 0.12);
  border: 1px solid rgba(51, 146, 99, 0.24);
}

.contact-form__notice--error {
  color: #8c2d20;
  background: rgba(223, 101, 72, 0.12);
  border: 1px solid rgba(223, 101, 72, 0.26);
}

.contact-form__field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.contact-form__field label {
  color: #5d5148;
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
  color: var(--ink);
  font: 500 0.95rem/1.5 var(--font-body);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.contact-form__field input {
  min-height: 46px;
  padding: 0 13px;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 150px;
  padding: 12px 13px;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: rgba(223, 101, 72, 0.58);
  box-shadow: 0 0 0 3px rgba(223, 101, 72, 0.12);
}

.contact-form__recaptcha {
  min-height: 78px;
  margin: 2px 0 18px;
}

.contact-form__recaptcha .g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #140c08;
  color: #fff8ed;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
}

.contact-form__submit:hover,
.contact-form__submit:focus {
  background: #2a1710;
  transform: translateY(-1px);
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(2) {
  transition-delay: 0.06s;
}

.stagger-children.visible > *:nth-child(3) {
  transition-delay: 0.12s;
}

.stagger-children.visible > *:nth-child(4) {
  transition-delay: 0.18s;
}

.stagger-children.visible > *:nth-child(5) {
  transition-delay: 0.24s;
}

.stagger-children.visible > *:nth-child(6) {
  transition-delay: 0.3s;
}

@media (max-width: 1024px) {
  :root {
    --max-width: 900px;
  }

  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .site-header__nav {
    grid-template-columns: auto auto 1fr auto;
  }

  .header-actions {
    display: flex;
    justify-content: flex-end;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 14px 16px 18px;
    background: var(--paper-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(32, 19, 12, 0.08);
    transform: translateY(-140%);
    transition: transform var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a,
  .lang-switcher {
    padding: 12px 2px;
    font-size: 0.9rem;
  }

  .lang-switcher__dropdown {
    left: 0;
    right: auto;
  }

  .hero__grid,
  .section-heading--split,
  .privacy__grid,
  .contact-page__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero__visual {
    justify-content: flex-start;
  }

  .phases__grid,
  .how-it-works__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__grid,
  .privacy__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .feature-card:nth-child(2n) {
    border-right: 0;
  }

  .feature-card:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .feature-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-header__nav {
    gap: 10px;
  }

  .dev-pill {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 92px 0 66px;
  }

  .hero__title {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .hero__actions,
  .hero__trust {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .app-card {
    width: min(100%, 288px);
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .section-heading--split {
    gap: 8px;
  }

  .phases__grid,
  .features__grid,
  .how-it-works__steps,
  .privacy__cards,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .features__grid {
    border-radius: 12px;
  }

  .feature-card,
  .feature-card:nth-child(2n),
  .feature-card:nth-child(3n),
  .feature-card:nth-last-child(-n + 2),
  .feature-card:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .cta__panel {
    min-height: 0;
    padding: 40px 26px;
    border-radius: 20px;
  }

  .contact-page {
    padding: 96px 0 66px;
  }

  .contact-form {
    padding: 22px;
  }

  .footer__grid {
    gap: 30px;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
