:root {
  color-scheme: light dark;
  --bg: #fff8ef;
  --surface: #ffffff;
  --surface-soft: #fff0e7;
  --text: #35241f;
  --muted: #735e56;
  --border: #e7cec1;
  --accent: #d94f45;
  --accent-strong: #a92f2b;
  --accent-soft: #ffd7ca;
  --focus: #7b3ff2;
  --shadow: 0 18px 45px rgb(90 45 31 / 12%);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --content: 70rem;
  --reading: 46rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgb(255 183 160 / 32%), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.7em;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4.6rem);
}

h2 {
  font-size: clamp(1.65rem, 5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p,
ul,
ol {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 1rem;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.reading {
  width: min(100%, var(--reading));
}

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(1rem);
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 12rem;
  max-width: 65vw;
}

.brand-text {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.site-nav {
  display: none;
  flex: 0 1 auto;
  gap: 0.3rem;
  min-width: 0;
  justify-content: flex-end;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.site-nav a,
.site-menu a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-menu a:hover,
.site-menu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.language-menu,
.site-menu {
  flex: 0 0 auto;
}

.language-menu {
  position: relative;
  width: fit-content;
}

.language-menu summary,
.site-menu summary {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  list-style: none;
  white-space: nowrap;
}

.language-menu summary::-webkit-details-marker,
.site-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.78rem;
}

.language-menu[open] summary,
.language-menu summary:hover,
.site-menu[open] summary,
.site-menu summary:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.language-menu ul,
.site-menu nav {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  min-width: 10rem;
  gap: 0.2rem;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  list-style: none;
}

.language-menu a,
.site-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.site-menu {
  position: relative;
  width: fit-content;
}

.site-menu summary {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 2.35rem;
  gap: 0.24rem;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
}

.site-menu summary span {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  padding-block: clamp(4rem, 11vw, 8rem);
}

.hero-grid,
.app-hero {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
}

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

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-disabled {
  border-color: var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-tight {
  padding-block: 2.5rem;
}

.section-header {
  max-width: 43rem;
  margin-bottom: 2rem;
}

.section-header p {
  color: var(--muted);
}

.surface-section {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.card-grid,
.feature-grid,
.link-grid {
  display: grid;
  gap: 1rem;
}

.plan-grid .card {
  padding-block: 1.5rem;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 25px rgb(90 45 31 / 6%);
}

.comparison-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  line-break: strict;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.comparison-table thead th {
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.92rem;
}

.comparison-table tbody th {
  width: 24%;
  color: var(--text);
}

.comparison-table td {
  color: var(--muted);
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.card,
.feature,
.notice,
.legal-toc {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 25px rgb(90 45 31 / 6%);
  line-break: strict;
  overflow-wrap: anywhere;
}

.card h2,
.card h3,
.feature h3,
.card p,
.feature p {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.app-card {
  display: grid;
  gap: 1.25rem;
}

.app-list {
  display: grid;
  gap: 1rem;
}

.app-list-card {
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.app-list-card:hover,
.app-list-card:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-0.08rem);
}

.card-cover-link {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  cursor: pointer;
}

.app-list-card > .app-card-media,
.app-list-card > div {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.app-list-card .app-store-badge {
  pointer-events: auto;
}

.app-list-card > img {
  width: 6.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: #fff;
}

.app-card-media {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

.app-card-media > img {
  width: 6.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: #fff;
}

.app-card p,
.feature p,
.card p {
  color: var(--muted);
}

.text-link {
  font-weight: 800;
}

.app-store-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 0.5rem;
  line-height: 0;
  text-decoration: none;
}

.app-store-badge img {
  width: auto;
  height: 2.5rem;
  max-width: 100%;
  border-radius: 0.45rem;
}

.app-store-badge-disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.6;
}

.app-icon-large {
  width: min(48vw, 13rem);
  border: 1px solid var(--border);
  border-radius: 24%;
  background: #fff;
  box-shadow: var(--shadow);
}

.screenshot-showcase {
  overflow: hidden;
  padding-block: 0 clamp(3.5rem, 8vw, 6rem);
}

.device-stack {
  position: relative;
  min-height: clamp(21rem, 61vw, 41rem);
}

.device-shot {
  position: absolute;
  margin: 0;
  filter: drop-shadow(0 24px 42px rgb(90 45 31 / 18%));
}

.device-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.device-shot-ipad {
  top: 0;
  right: 0;
  z-index: 1;
  width: min(82%, 45rem);
  aspect-ratio: 2980 / 2300;
}

.device-shot-phone {
  bottom: 0;
  left: 0;
  z-index: 2;
  width: min(74%, 42rem);
  aspect-ratio: 2760 / 1350;
}

.feature-grid-large .feature {
  min-height: 15rem;
}

.feature-grid-large .feature h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.screenshot-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

figure {
  margin: 0;
}

.screenshot {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 0.5rem);
}

figcaption {
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-list,
.check-list {
  padding-left: 1.3rem;
}

.link-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.3rem;
}

.meta-list li,
.check-list li,
.link-list li {
  margin-bottom: 0.55rem;
}

.notice {
  border-left: 0.35rem solid var(--accent);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.turnstile-box {
  min-height: 4.2rem;
}

.form-help,
.field-help,
.form-fallback,
.form-status {
  color: var(--muted);
}

.field-help {
  margin: 0;
  font-size: 0.95rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 800;
}

.form-status[data-state="success"] {
  color: #237a4b;
}

.form-status[data-state="error"] {
  color: #b93022;
}

.legal-header {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.legal-meta {
  color: var(--muted);
}

.legal-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.legal-toc {
  font-size: 0.92rem;
}

.legal-toc ol {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.legal-content section {
  padding-block: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.45rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.footer-inner {
  padding-block: 0.75rem;
}

.site-footer .brand {
  display: none;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

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

.center-card {
  width: min(100%, 36rem);
  padding: clamp(1.5rem, 6vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow);
}

.center-card h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
}

@media (min-width: 44rem) {
  .site-nav {
    display: flex;
    margin-left: auto;
  }

  .header-actions {
    margin-left: 0;
  }

  .hero-grid,
  .app-hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  }

  .card-grid,
  .feature-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card {
    grid-template-columns: auto 1fr;
  }

  .screenshot-grid {
    grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
  }

}

@media (min-width: 64rem) {
  .feature-grid:not(.feature-grid-large) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .legal-toc {
    position: sticky;
    top: 2rem;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #201713;
    --surface: #2c211c;
    --surface-soft: #382720;
    --text: #fff4ea;
    --muted: #d5bdb1;
    --border: #5a4036;
    --accent: #ff786b;
    --accent-strong: #ff9a8d;
    --accent-soft: #563028;
    --focus: #c5a4ff;
    --shadow: 0 18px 45px rgb(0 0 0 / 30%);
  }

  .button {
    color: #26120f;
  }

  .button-secondary {
    color: var(--text);
  }

  .button-disabled {
    color: var(--muted);
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    background: var(--surface-soft);
  }

  .form-status[data-state="success"] {
    color: #72d49b;
  }

  .form-status[data-state="error"] {
    color: #ff9a8d;
  }

  .brand img {
    filter: brightness(2.2) saturate(0.85);
  }
}
