:root {
  --color-sage: #a7c1ae;
  --color-beige: #f2e8db;
  --color-cream: #faf7f2;
  --color-coral: #e09a7d;
  --color-forest: #5e6b63;
  --color-ink: #173036;
  --color-muted: #5f6f6a;
  --color-white: #ffffff;
  --font-title: "Nunito", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --container: 1180px;
  --space-section: clamp(4rem, 7vw, 7rem);
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --shadow-soft: 0 20px 60px rgba(94, 107, 99, 0.16);
  --shadow-card: 0 12px 32px rgba(94, 107, 99, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 8% 12%, rgba(167, 193, 174, 0.2), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(224, 154, 125, 0.16), transparent 28%);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 4px;
}

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

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 900px;
}

.section {
  padding-block: var(--space-section);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  width: min(100% - 2rem, 1240px);
  min-height: 82px;
  margin: 1rem auto 0;
  padding: 0.7rem 1rem;
  background: rgba(250, 247, 242, 0.88);
  border: 1px solid rgba(94, 107, 99, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(94, 107, 99, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--color-forest);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 0.9;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  font-size: 0.98rem;
  font-weight: 700;
}

.main-nav a,
.site-footer a {
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--color-coral);
}

.header-cta,
.button,
.play-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: var(--color-white);
  background: var(--color-coral);
  box-shadow: 0 12px 24px rgba(224, 154, 125, 0.26);
}

.button.primary:hover,
.header-cta:hover {
  background: #cf8264;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--color-white);
  border: 1px solid rgba(94, 107, 99, 0.2);
  border-radius: var(--radius-sm);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-forest);
}

.hero {
  padding-top: clamp(3rem, 8vw, 6rem);
}

.hero-grid,
.intro-grid,
.download-grid,
.professional-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--color-coral);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-title);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.65rem, 6vw, 5.3rem);
}

h1 span,
.section-heading h2 span {
  color: var(--color-coral);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.32rem;
}

.lead {
  max-width: 620px;
  margin: 1.25rem 0 2rem;
  color: var(--color-muted);
  font-size: clamp(1.12rem, 2.2vw, 1.28rem);
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(58vw, 310px);
  aspect-ratio: 0.49;
  padding: 16px;
  background: #171b1c;
  border: 4px solid rgba(255, 255, 255, 0.65);
  border-radius: 42px;
  box-shadow: var(--shadow-soft);
  transform: translate(-50%, -50%);
}

.phone-main {
  z-index: 2;
}

.phone-left {
  z-index: 1;
  opacity: 0.82;
  transform: translate(-86%, -44%) rotate(-10deg) scale(0.83);
}

.phone-right {
  z-index: 1;
  opacity: 0.82;
  transform: translate(-14%, -44%) rotate(10deg) scale(0.83);
}

.phone-speaker {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 38%;
  height: 22px;
  background: #171b1c;
  border-radius: 0 0 16px 16px;
  transform: translateX(-50%);
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-cream);
  border-radius: 30px;
}

.app-preview {
  padding: 4.1rem 1rem 1rem;
}

.preview-hello {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.preview-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.8rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(94, 107, 99, 0.08);
}

.preview-item small {
  color: var(--color-muted);
  font-weight: 700;
}

.preview-note {
  margin-top: 1rem;
  padding: 0.8rem;
  color: var(--color-forest);
  background: rgba(167, 193, 174, 0.22);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.placeholder-screen {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--color-forest);
  background: linear-gradient(160deg, var(--color-beige), var(--color-cream));
  text-align: center;
  font-weight: 800;
}

.main-placeholder {
  padding-top: 4.5rem;
  font-size: 1rem;
}

.soft-band,
.professional-section {
  background: linear-gradient(90deg, rgba(242, 232, 219, 0.9), rgba(167, 193, 174, 0.22));
}

.professional-section {
  background:
    linear-gradient(90deg, rgba(167, 193, 174, 0.36), rgba(242, 232, 219, 0.86)),
    var(--color-cream);
  border-block: 1px solid rgba(94, 107, 99, 0.12);
}

.professional-section .eyebrow {
  color: var(--color-forest);
}

.intro-grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: end;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

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

.feature-card,
.why-grid article,
.professional-cards article,
.contact-card,
.about-card,
.legal-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(94, 107, 99, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.feature-card p,
.why-grid p,
.professional-cards p,
.contact-grid p,
.legal-card p {
  color: var(--color-muted);
}

.feature-icon,
.icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  background: var(--color-sage);
  border-radius: 50%;
  mask: radial-gradient(circle, #000 68%, transparent 70%);
}

.bottle { background: var(--color-sage); }
.moon { background: var(--color-sage); }
.heart { background: var(--color-coral); }
.people { background: var(--color-forest); }
.calendar { background: var(--color-coral); }
.chart { background: var(--color-sage); }

.download-band {
  background: var(--color-forest);
  color: var(--color-white);
}

.download-band h2,
.download-band .eyebrow {
  color: var(--color-white);
}

.download-band p {
  color: rgba(255, 255, 255, 0.86);
}

.download-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.download-actions {
  display: grid;
  gap: 0.85rem;
  min-width: min(100%, 320px);
}

.play-badge {
  color: var(--color-ink);
  background: var(--color-white);
}

.play-badge.disabled {
  color: var(--color-muted);
  cursor: default;
}

.ios-note {
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.9fr;
  gap: 1.2rem;
}

.accent-card {
  background: var(--color-beige) !important;
}

.professional-grid {
  grid-template-columns: 0.75fr 1.25fr;
}

.professional-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.professional-cards article {
  background: rgba(250, 247, 242, 0.9);
  border-color: rgba(94, 107, 99, 0.16);
}

.contact-grid {
  grid-template-columns: 0.75fr 1.25fr;
}

.contact-mail a {
  color: var(--color-coral);
  font-weight: 800;
}

.contact-card {
  align-self: start;
}

.contact-card p {
  color: var(--color-muted);
}

.about-section {
  background: linear-gradient(90deg, rgba(250, 247, 242, 0.96), rgba(242, 232, 219, 0.68));
}

.about-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-card h3 {
  max-width: 720px;
  color: var(--color-forest);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.about-text {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.about-text p {
  margin: 0;
  color: var(--color-muted);
}

.site-footer {
  padding: 2.2rem 0 1.2rem;
  background: var(--color-white);
  border-top: 1px solid rgba(94, 107, 99, 0.12);
}

.site-footer .container {
  width: min(100% - 2rem, 1500px);
}

.footer-grid {
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-grid nav,
.social-links {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-slogan {
  margin: 0;
  color: var(--color-ink);
  text-align: center;
  font-size: 1.05rem;
}

.legal-footer-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem 1.2rem;
  align-items: center;
}

.footer-social {
  justify-self: end;
}

.legal-footer-links a {
  white-space: nowrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-forest);
  background: rgba(167, 193, 174, 0.18);
  border: 1px solid rgba(94, 107, 99, 0.14);
  border-radius: 50%;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.social-link:hover {
  color: var(--color-coral);
  background: rgba(224, 154, 125, 0.14);
  border-color: rgba(224, 154, 125, 0.34);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-link svg rect,
.social-link svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-link svg path {
  fill: currentColor;
}

.social-link.is-disabled {
  opacity: 0.55;
}

.footer-title {
  margin: 0 0 0.6rem;
  font-weight: 800;
}

.copyright {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  align-items: center;
  justify-content: center;
  margin: 1.4rem 1rem 0;
  color: var(--color-muted);
  text-align: center;
  font-size: 0.92rem;
}

.legal-page h1 {
  margin-bottom: 1rem;
}

.privacy-hero {
  padding-bottom: 2rem;
}

.privacy-lead {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 1.15rem;
}

.privacy-meta {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.policy-notice,
.policy-review {
  margin-top: 1.6rem;
  padding: 1.2rem 1.35rem;
  background: rgba(242, 232, 219, 0.7);
  border: 1px solid rgba(224, 154, 125, 0.45);
  border-radius: var(--radius-sm);
}

.policy-notice p,
.policy-review p {
  margin: 0.45rem 0 0;
}

.policy-notice code {
  padding: 0.12rem 0.3rem;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  font-size: 0.86em;
}

.privacy-content {
  padding-top: 1rem;
}

.policy-toc {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(94, 107, 99, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.policy-toc h2 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.policy-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 2rem;
  margin: 0;
  padding-left: 1.35rem;
}

.policy-toc a {
  color: var(--color-forest);
  font-weight: 700;
}

.policy-document {
  margin-top: 2rem;
  padding: clamp(1.3rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(94, 107, 99, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.policy-section {
  scroll-margin-top: 6rem;
  padding: 1.2rem 0 1.8rem;
  border-bottom: 1px solid rgba(94, 107, 99, 0.12);
}

.policy-section:first-child {
  padding-top: 0;
}

.policy-section:last-of-type {
  border-bottom: 0;
}

.policy-section h2,
.policy-review h2 {
  margin-bottom: 0.8rem;
  color: var(--color-forest);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.policy-section p,
.policy-section ul,
.policy-review ul {
  margin: 0.7rem 0 0;
}

.policy-section ul,
.policy-review ul {
  padding-left: 1.35rem;
}

.policy-section li + li,
.policy-review li + li {
  margin-top: 0.35rem;
}

.policy-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.policy-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.policy-table th,
.policy-table td {
  padding: 0.75rem;
  border: 1px solid rgba(94, 107, 99, 0.16);
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  color: var(--color-forest);
  background: rgba(167, 193, 174, 0.18);
}

.policy-review-note {
  color: #7a5132;
  font-weight: 700;
}

.legal-documents {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.legal-version {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(94, 107, 99, 0.12);
}

.legal-version span {
  color: var(--color-coral);
  font-weight: 800;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-shell {
  width: min(100%, 620px);
}

.auth-brand {
  margin-bottom: 1.2rem;
}

.auth-card {
  padding: clamp(1.5rem, 5vw, 2.4rem);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(94, 107, 99, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
}

.auth-message,
.auth-help {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-weight: 700;
}

.auth-message.error {
  color: #8a2f1e;
}

.auth-message.success {
  color: var(--color-forest);
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid rgba(94, 107, 99, 0.28);
  border-radius: var(--radius-sm);
  font: inherit;
}

.auth-form button {
  width: fit-content;
}

.account-deletion-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.account-deletion-page main {
  flex: 1;
}

.account-deletion-section {
  padding-top: clamp(3rem, 8vw, 6rem);
}

.account-deletion-shell {
  width: min(100%, 760px);
  margin-inline: auto;
}

.account-deletion-card {
  padding: clamp(1.4rem, 5vw, 2.6rem);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(94, 107, 99, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.account-deletion-card h1 {
  max-width: 640px;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
}

.account-deletion-intro,
.account-deletion-info p,
.account-deletion-status p {
  color: var(--color-muted);
}

.account-deletion-form {
  margin-top: 1.8rem;
}

.account-deletion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
}

.button.secondary {
  color: var(--color-ink);
  background: var(--color-white);
  border-color: rgba(94, 107, 99, 0.24);
}

.button.secondary:hover {
  border-color: var(--color-coral);
}

.button.danger {
  color: var(--color-white);
  background: #a94b3a;
  box-shadow: 0 12px 24px rgba(169, 75, 58, 0.2);
}

.button.danger:hover {
  background: #893b2e;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.account-deletion-alert,
.account-deletion-confirmation,
.account-deletion-status {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
}

.account-deletion-alert {
  color: #6f4a23;
  background: rgba(242, 232, 219, 0.82);
  border: 1px solid rgba(224, 154, 125, 0.4);
}

.account-deletion-confirmation {
  background: rgba(224, 154, 125, 0.12);
  border: 1px solid rgba(224, 154, 125, 0.4);
}

.account-deletion-confirmation h2,
.account-deletion-info h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.account-deletion-confirmation p,
.account-deletion-info p,
.account-deletion-status p {
  margin-bottom: 0;
}

.account-deletion-info {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(94, 107, 99, 0.14);
}

.account-deletion-info ul {
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.account-deletion-status.error {
  color: #8a2f1e;
  background: rgba(169, 75, 58, 0.08);
  border: 1px solid rgba(169, 75, 58, 0.2);
}

.account-deletion-status.success {
  color: var(--color-forest);
  background: rgba(167, 193, 174, 0.2);
  border: 1px solid rgba(94, 107, 99, 0.16);
}

.account-deletion-status.warning {
  color: #6f4a23;
  background: rgba(242, 232, 219, 0.82);
  border: 1px solid rgba(224, 154, 125, 0.4);
}

.account-deletion-status strong {
  color: inherit;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.7rem;
  }

  .main-nav.is-open,
  .main-nav.always-visible {
    display: flex;
  }

  .main-nav a {
    padding: 0.9rem 0.2rem;
    border-top: 1px solid rgba(94, 107, 99, 0.12);
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .intro-grid,
  .download-grid,
  .professional-grid,
  .contact-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-footer-links {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 0;
  }

  .legal-footer-links a {
    white-space: normal;
  }

  .footer-social {
    justify-self: start;
  }

  .hero-visual {
    min-height: 540px;
  }

  .feature-grid,
  .why-grid,
  .professional-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 1.2rem, var(--container));
  }

  .site-header {
    width: min(100% - 1rem, 1240px);
    margin-top: 0.5rem;
  }

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

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

  .hero {
    padding-top: 2.5rem;
  }

  .hero-visual {
    min-height: 460px;
  }

  .phone {
    width: min(78vw, 270px);
  }

  .phone-left,
  .phone-right {
    display: none;
  }

  .feature-grid,
  .why-grid,
  .professional-cards {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .why-grid article,
  .professional-cards article,
  .contact-card,
  .about-card,
  .legal-card {
    padding: 1.15rem;
  }

  .account-deletion-actions,
  .account-deletion-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
