:root {
  --ink: #25231f;
  --ink-soft: #5f594f;
  --muted: #70675d;
  --canvas: #faf7f0;
  --cream: #f7f2e8;
  --surface: #fffdf9;
  --line: #e4d9ca;
  --orange: #f28a2e;
  --orange-dark: #9a4308;
  --orange-deep: #713006;
  --orange-soft: #fff0de;
  --focus-ring: #9a4308;
  --pink: #ec3f91;
  --success: #277442;
  --shadow-sm: 0 10px 28px rgb(79 48 20 / 8%);
  --shadow-lg: 0 32px 90px rgb(79 48 20 / 16%);
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

body::before {
  background:
    radial-gradient(circle at 8% 8%, rgb(242 138 46 / 16%), transparent 23rem),
    radial-gradient(circle at 91% 19%, rgb(236 63 145 / 9%), transparent 24rem);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
.language-picker summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.skip-link {
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  color: #fff;
  left: 1rem;
  padding: 0.8rem 1rem;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 180ms ease;
  z-index: 100;
}

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

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  height: auto;
  width: clamp(142px, 14vw, 188px);
}

.nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgb(250 247 240 / 82%);
  border-bottom: 1px solid rgb(228 217 202 / 72%);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.15rem max(2rem, calc((100vw - 1240px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav > nav:not(.language-picker) {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  font-weight: 760;
  gap: 1.7rem;
}

.nav > nav:not(.language-picker) > a:not(.nav-cta) {
  transition: color 180ms ease;
}

.nav > nav:not(.language-picker) > a:not(.nav-cta):hover {
  color: var(--orange-dark);
}

.mobile-nav-links {
  display: none;
}

.language-picker {
  flex: 0 0 auto;
  position: relative;
}

.language-picker summary {
  align-items: center;
  background: rgb(255 253 249 / 96%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgb(79 48 20 / 5%);
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 6px 10px 6px 8px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.language-picker summary::-webkit-details-marker {
  display: none;
}

.language-picker summary:hover {
  background: var(--orange-soft);
  border-color: rgb(242 138 46 / 55%);
  box-shadow: 0 7px 18px rgb(79 48 20 / 9%);
  transform: translateY(-1px);
}

.language-picker[open] summary {
  background: var(--surface);
  border-color: rgb(242 138 46 / 60%);
  box-shadow: 0 0 0 3px rgb(242 138 46 / 12%);
}

.language-chevron {
  border-bottom: 2px solid var(--ink-soft);
  border-right: 2px solid var(--ink-soft);
  height: 7px;
  margin: -3px 2px 0 0;
  transform: rotate(45deg);
  transition: transform 180ms ease;
  width: 7px;
}

.language-picker[open] .language-chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.language-options {
  background: rgb(255 253 249 / 98%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgb(79 48 20 / 14%);
  display: grid;
  gap: 0.2rem;
  min-width: 178px;
  padding: 0.4rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
}

.language-picker:not([open]) .language-options {
  display: none;
}

.language-options a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  display: grid;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.7rem;
  grid-template-columns: 28px 1fr 16px;
  min-height: 42px;
  padding: 0.45rem 0.55rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.language-options a::after {
  color: var(--orange-dark);
  content: "";
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.language-options a:hover {
  background: var(--orange-soft);
  border-color: rgb(242 138 46 / 25%);
  color: var(--orange-deep);
}

.language-options a[aria-current="page"] {
  background: rgb(255 240 222 / 72%);
  color: var(--orange-deep);
}

.language-options a[aria-current="page"]::after {
  content: "\2713";
}

.language-name {
  line-height: 1.2;
}

.language-flag {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(37 35 31 / 14%);
  display: block;
  height: 18px;
  overflow: hidden;
  width: 27px;
}

.nav-cta,
.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.nav-cta {
  background: var(--orange);
  box-shadow: 0 8px 22px rgb(242 138 46 / 22%);
  color: #2d1808;
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  white-space: nowrap;
}

.nav-cta:hover,
.button.primary:hover {
  box-shadow: 0 12px 28px rgb(242 138 46 / 32%);
  transform: translateY(-2px);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: min(700px, calc(100svh - 74px));
  padding: clamp(3rem, 5vw, 4.5rem) 2rem clamp(3.5rem, 6vw, 5rem);
}

.hero-copy {
  animation: rise-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

h1 {
  font-size: clamp(4rem, 7vw, 7.4rem);
  line-height: 0.91;
  margin: 1.2rem 0 1.8rem;
  text-wrap: balance;
}

h1 em {
  color: var(--orange-dark);
  font-weight: inherit;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.5vw, 1.16rem);
  line-height: 1.75;
  max-width: 650px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  padding: 0.9rem 1.35rem;
}

.button.primary {
  background: var(--orange);
  box-shadow: 0 8px 22px rgb(242 138 46 / 20%);
  color: #2d1808;
}

.button.secondary {
  background: rgb(255 253 249 / 68%);
  border: 1px solid var(--line);
  color: var(--ink);
}

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

.fineprint {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 1.3rem 0 0;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.platforms span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
}

.preview {
  animation: rise-in 700ms 100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  background: rgb(255 253 249 / 94%);
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  overflow: hidden;
  padding: 1.45rem;
  position: relative;
  transform: rotate(1deg);
}

.preview::before,
.preview::after {
  border-radius: 50%;
  content: "";
  position: absolute;
  z-index: -1;
}

.preview::before {
  background: rgb(242 138 46 / 20%);
  height: 205px;
  left: -82px;
  top: -74px;
  width: 205px;
}

.preview::after {
  background: rgb(236 63 145 / 11%);
  bottom: -50px;
  height: 130px;
  right: -42px;
  width: 130px;
}

.preview-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.4rem 1.3rem;
}

.preview-top strong,
.preview-top span {
  display: block;
}

.preview-top strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  margin-top: 0.35rem;
}

.preview-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.emoji {
  background: var(--orange-soft);
  border: 1px solid rgb(242 138 46 / 18%);
  border-radius: 16px;
  font-size: 1.6rem;
  padding: 0.8rem;
}

.balance {
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}

.positive {
  background: #e9f6ea;
  color: var(--success);
}

.expense {
  align-items: center;
  border-top: 1px solid #eee6db;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 42px 1fr auto;
  padding: 1rem 0.25rem;
}

.expense-icon {
  align-items: center;
  background: #f1ece4;
  border-radius: 12px;
  display: flex;
  height: 42px;
  justify-content: center;
}

.expense-icon.orange {
  background: var(--orange-soft);
}

.expense small {
  color: var(--muted);
  display: block;
  margin-top: 0.25rem;
}

.settlement {
  background: var(--ink);
  border-radius: 14px;
  color: #fff;
  display: flex;
  font-size: 0.86rem;
  font-weight: 750;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding: 1rem;
}

.settlement span:last-child {
  color: var(--orange);
}

.section {
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(6rem, 10vw, 9rem) 2rem;
}

.section-heading {
  max-width: 760px;
}

.centered-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: -1.5rem 0 3rem;
  max-width: 680px;
}

.centered-heading .section-intro {
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 1;
  margin: 1rem 0 3rem;
  text-wrap: balance;
}

.features {
  padding-top: clamp(4rem, 7vw, 6rem);
}

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

.feature-grid article {
  background: rgb(255 253 249 / 86%);
  border: 1px solid var(--line);
  border-radius: 24px;
  min-height: 250px;
  padding: 2.2rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature-grid article:hover {
  border-color: rgb(242 138 46 / 55%);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.number {
  align-items: center;
  background: var(--orange-soft);
  border-radius: 999px;
  color: var(--orange-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 44px;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  margin: 2rem 0 0.7rem;
}

.feature-grid p,
.steps p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.comparison {
  max-width: 1320px;
}

.comparison .section-heading {
  max-width: 920px;
}

.comparison-date {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 1rem;
  text-align: center;
}

.comparison-table-wrap {
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.comparison-table-wrap:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.comparison-table {
  background: var(--surface);
  border-collapse: separate;
  border-spacing: 0;
  min-width: 820px;
  width: 100%;
}

.comparison-table caption {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0 0 0 0);
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
  text-align: left;
  vertical-align: middle;
}

.comparison-table thead th {
  background: #f4eee4;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table thead th:first-child {
  border-radius: 23px 0 0;
  width: 31%;
}

.comparison-table thead th:last-child {
  border-radius: 0 23px 0 0;
}

.comparison-table tbody th {
  font-size: 0.93rem;
  line-height: 1.45;
}

.comparison-table .comparison-category th {
  background: var(--ink);
  border-bottom-color: rgb(255 255 255 / 12%);
  color: #fffaf1;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding-block: 0.9rem;
  text-transform: uppercase;
}

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

.comparison-table .product-highlight {
  background: #fff7e9;
}

.comparison-table thead .product-highlight {
  background: var(--orange);
  color: #2d1808;
}

.comparison-table td small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  line-height: 1.4;
  margin-top: 0.28rem;
}

.status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.3;
  padding: 0.4rem 0.62rem;
}

.status.included {
  background: #e5f3e8;
  color: #1f6638;
}

.status.paid {
  background: #fff0de;
  color: var(--orange-deep);
}

.status.neutral {
  background: #f0ece6;
  color: var(--ink-soft);
}

.comparison-summary {
  align-items: center;
  background:
    radial-gradient(circle at 92% 20%, rgb(236 63 145 / 10%), transparent 18rem),
    var(--ink);
  border-radius: 24px;
  color: #fffaf1;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 1rem;
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.comparison-summary .eyebrow {
  color: #f6a65e;
  margin-top: 0;
}

.comparison-summary h3 {
  color: #fffaf1;
  margin: 0 0 0.7rem;
}

.comparison-summary p:not(.eyebrow) {
  color: #d8d0c4;
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.comparison-summary-actions {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.comparison-table-heading {
  margin-top: clamp(4rem, 8vw, 6.5rem);
}

.comparison-table-heading h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0.4rem 0 1rem;
}

.comparison-sources {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 1rem 0 0;
}

.comparison-sources a {
  color: var(--orange-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.steps {
  background:
    radial-gradient(circle at 92% 10%, rgb(236 63 145 / 8%), transparent 20rem),
    var(--orange-soft);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
  padding: clamp(4rem, 7vw, 6rem) max(2rem, calc((100vw - 1200px) / 2));
}

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  align-items: flex-start;
  border-top: 1px solid rgb(154 67 8 / 18%);
  display: grid;
  gap: 1rem;
  grid-template-columns: 48px 1fr;
  padding: 1.15rem 0;
}

.steps li > span {
  align-items: center;
  background: var(--orange);
  border-radius: 50%;
  color: #2d1808;
  display: flex;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.steps strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
}

.steps li p {
  margin: 0.4rem 0 0;
}

.faq {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
}

.faq .section-heading {
  position: sticky;
  top: 8rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  font-weight: 700;
  list-style: none;
  padding: 1.25rem 3rem 1.25rem 0;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--orange-dark);
  content: "+";
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  position: absolute;
  right: 0.3rem;
  top: 1.02rem;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin: -0.5rem 0 1.6rem;
  max-width: 680px;
  padding-right: 2rem;
}

.closing {
  background:
    linear-gradient(120deg, rgb(236 63 145 / 10%), transparent 38%),
    var(--orange);
  color: #2d1808;
  padding: clamp(4rem, 7vw, 6rem) 2rem;
  text-align: center;
}

.closing .eyebrow {
  color: var(--orange-deep);
}

.closing h2 {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.4rem;
  max-width: 900px;
}

.closing > p:not(.eyebrow) {
  font-weight: 750;
  margin: 0 auto 2rem;
}

.closing .primary.light {
  background: var(--ink);
  box-shadow: 0 12px 30px rgb(45 24 8 / 20%);
  color: #fff;
}

.home .section {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.home .features {
  padding-top: clamp(3.25rem, 5vw, 4.5rem);
}

.home .section-intro {
  margin: -1rem 0 2.25rem;
}

.home .section-heading h2,
.home .steps h2,
.home .migration h2 {
  margin-bottom: 2.25rem;
}

.home .feature-grid h3 {
  margin-top: 1.4rem;
}

.home .feature-grid article {
  min-height: 220px;
  padding: 1.75rem;
}

.home .comparison-table th,
.home .comparison-table td {
  padding: 1rem 1.1rem;
}

.home .comparison-table-heading {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.home .migration {
  gap: clamp(2rem, 5vw, 4rem);
}

footer {
  align-items: center;
  display: grid;
  column-gap: 1.2rem;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1240px;
  padding: 1.75rem 2rem 1.5rem;
  row-gap: 0.55rem;
}

footer p,
footer small {
  color: var(--muted);
  margin: 0;
}

footer nav {
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 1.2rem;
}

footer nav a:hover {
  color: var(--orange-dark);
}

.home footer nav .support-project {
  align-items: center;
  background: var(--orange);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgb(154 67 8 / 18%);
  color: var(--ink);
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home footer nav .support-project:hover {
  background: #ffa34e;
  box-shadow: 0 8px 20px rgb(154 67 8 / 25%);
  color: var(--ink);
  transform: translateY(-1px);
}

footer small {
  grid-column: 1 / 3;
}

.comparison-date.align-left {
  text-align: left;
}

.table-swipe-hint {
  color: var(--orange-dark);
  display: none;
  font-size: 0.78rem;
  font-weight: 780;
  margin: -0.2rem 0 0.8rem;
}

.migration {
  align-items: start;
  display: grid;
  gap: clamp(3rem, 8vw, 7rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.migration h2 {
  margin-bottom: 1.5rem;
}

.migration > div > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.75;
}

.migration ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.migration li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 42px 1fr;
  padding: 1.25rem 0;
}

.migration li:last-child {
  border-bottom: 1px solid var(--line);
}

.migration li span {
  align-items: center;
  background: var(--orange);
  border-radius: 50%;
  color: #2d1808;
  display: flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.legal {
  min-height: calc(100svh - 180px);
  max-width: 1240px;
  padding-top: clamp(4rem, 8vw, 7rem);
}

.legal h1 {
  font-size: clamp(2.8rem, 7vw, 5.75rem);
  hyphens: auto;
  letter-spacing: -0.055em;
  max-width: 1000px;
  overflow-wrap: break-word;
}

.legal p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.legal-nav nav a[aria-current="page"],
footer nav a[aria-current="page"] {
  color: var(--orange-dark);
}

.legal-hero {
  max-width: 960px;
}

.legal-hero .legal-meta {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 1.2rem 0 0;
  max-width: 760px;
}

.legal-note {
  background: var(--orange-soft);
  border: 1px solid rgb(242 138 46 / 32%);
  border-left: 5px solid var(--orange);
  border-radius: 18px;
  margin: 2.6rem 0 4rem;
  max-width: 960px;
  padding: 1.25rem 1.4rem;
}

.legal-note strong {
  color: var(--orange-deep);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.legal-note p {
  font-size: 0.94rem;
  margin: 0;
}

.legal-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 5.5rem);
  grid-template-columns: minmax(190px, 240px) minmax(0, 760px);
}

.legal-layout--compact {
  margin-top: 3.5rem;
}

.legal-toc {
  display: grid;
  gap: 0.35rem;
  position: sticky;
  top: 7rem;
}

.legal-toc strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.legal-toc a {
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 0.44rem 0.75rem;
  transition: border-color 180ms ease, color 180ms ease;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.legal-content {
  min-width: 0;
}

.legal > .legal-content {
  max-width: 760px;
}

.legal > .legal-form {
  max-width: 760px;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
  scroll-margin-top: 7rem;
}

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

.legal-section h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
  margin: 0 0 1.15rem;
}

.legal-section p {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.legal-section ul {
  color: var(--ink-soft);
  display: grid;
  gap: 0.65rem;
  line-height: 1.65;
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
}

.legal-steps {
  color: var(--ink-soft);
  counter-reset: legal-step;
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.legal-steps li {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 2rem 1fr;
  line-height: 1.55;
}

.legal-steps li::before {
  align-items: center;
  background: var(--orange-soft);
  border-radius: 50%;
  color: var(--orange-deep);
  content: counter(legal-step);
  counter-increment: legal-step;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.legal-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.legal-form .amount-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-form .field {
  color: var(--ink);
  display: grid;
  font-size: 0.88rem;
  font-weight: 760;
  gap: 0.45rem;
}

.legal-form input,
.legal-form select,
.legal-form textarea {
  background: #fffdfa;
  border: 1px solid #d7cbbb;
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.legal-form textarea {
  line-height: 1.55;
  min-height: 9rem;
  resize: vertical;
}

.legal-form input:focus-visible,
.legal-form select:focus-visible,
.legal-form textarea:focus-visible {
  border-color: var(--orange);
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.legal-form .check-line {
  align-items: start;
  color: var(--ink-soft);
  display: grid;
  font-size: 0.92rem;
  gap: 0.7rem;
  grid-template-columns: 1.2rem 1fr;
  line-height: 1.55;
}

.legal-form .check-line input {
  accent-color: var(--orange);
  margin-top: 0.15rem;
  min-height: 1.15rem;
  padding: 0;
  width: 1.15rem;
}

.captcha-field {
  display: grid;
  gap: 0.55rem;
  max-width: 100%;
}

#content-notice-recaptcha {
  min-height: 78px;
  max-width: 100%;
}

.field-help,
.form-status {
  color: var(--muted);
  font-size: 0.86rem !important;
  line-height: 1.5;
  margin: -0.25rem 0 0 !important;
}

.form-status.notice,
.form-status.error {
  border-radius: 12px;
  font-weight: 720;
  padding: 0.8rem 0.9rem;
}

.form-status.notice {
  background: #e9f6ea;
  color: var(--success);
}

.form-status.error {
  background: #fff0eb;
  color: #8b2f13;
}

.legal-form button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.legal-action {
  margin-top: 0.25rem;
}

.legal-address {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-style: normal;
  line-height: 1.7;
  padding: 1.25rem 1.4rem;
}

.legal-link {
  color: var(--orange-dark);
  text-decoration: underline;
  text-decoration-color: rgb(242 138 46 / 45%);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.legal-link:hover {
  text-decoration-color: currentColor;
}

.legal-version {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  padding-top: 1.4rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 1080px) {
  html {
    scroll-padding-top: 8rem;
  }

  .home .nav > nav:not(.language-picker) > a:not(.nav-cta) {
    display: none;
  }

  .legal-nav {
    flex-wrap: wrap;
  }

  .legal-nav .language-picker {
    margin-left: auto;
    order: 2;
  }

  .legal-nav > nav:not(.language-picker) {
    flex: 1 0 100%;
    gap: 0.4rem;
    order: 3;
    overflow-x: auto;
    padding-top: 0.1rem;
    scrollbar-width: none;
  }

  .legal-nav > nav:not(.language-picker)::-webkit-scrollbar {
    display: none;
  }

  .legal-nav > nav:not(.language-picker) > a {
    align-items: center;
    background: rgb(255 253 249 / 76%);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    min-height: 44px;
    padding: 0.58rem 0.78rem;
    text-align: center;
  }

  .home .nav {
    flex-wrap: wrap;
  }

  .home .language-picker {
    margin-left: auto;
    order: 2;
  }

  .home .nav > nav:not(.language-picker) {
    flex: 1 0 100%;
    gap: 0;
    order: 3;
  }

  .home .nav > nav:not(.language-picker) > a {
    display: none;
  }

  .home .mobile-nav-links {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-top: 0.1rem;
    scrollbar-width: none;
    width: 100%;
  }

  .home .mobile-nav-links::-webkit-scrollbar {
    display: none;
  }

  .home .mobile-nav-links a {
    background: rgb(255 253 249 / 76%);
    border: 1px solid var(--line);
    border-radius: 999px;
    flex: 1 0 auto;
    font-size: 0.78rem;
    min-height: 38px;
    padding: 0.58rem 0.78rem;
    text-align: center;
  }

  .home .mobile-nav-links a:hover {
    background: var(--orange-soft);
    border-color: rgb(242 138 46 / 45%);
    color: var(--orange-dark);
  }
}

@media (max-width: 820px) {
  .table-swipe-hint {
    display: block;
  }

  .nav > nav:not(.language-picker) > a:first-child {
    display: none;
  }

  .hero {
    gap: 2rem;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.75rem;
  }

  .preview {
    margin: 1.5rem auto 0;
    max-width: 540px;
    transform: none;
    width: 100%;
  }

  .feature-grid,
  .comparison-summary,
  .faq,
  .migration,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 1rem;
  }

  .faq {
    gap: 0;
  }

  .faq .section-heading {
    position: static;
  }

  .migration {
    gap: 2rem;
  }

  footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  footer small {
    grid-column: auto;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem;
    position: static;
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 0.5rem;
    padding: 0.9rem 0.75rem;
  }

  .nav > nav:not(.language-picker) {
    display: none;
  }

  .home .nav > nav:not(.language-picker),
  .legal-nav > nav:not(.language-picker) {
    display: flex;
  }

  .brand img {
    width: 108px;
  }

  .language-picker {
    margin-left: auto;
  }

  .language-picker summary {
    height: 40px;
  }

  .language-flag {
    height: 16px;
    width: 24px;
  }

  .nav-cta {
    font-size: 0.78rem;
    min-height: 44px;
    padding-inline: 0.95rem;
  }

  .hero,
  .section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 4.4rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 9.6vw, 3.15rem);
    line-height: 0.96;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-grid article {
    min-height: 0;
    padding: 1.5rem;
  }

  .home .feature-grid article {
    min-height: 0;
    padding: 1.5rem;
  }

  .expense {
    grid-template-columns: 40px 1fr;
  }

  .expense > b {
    grid-column: 2;
  }

  footer nav {
    flex-wrap: wrap;
  }

  .home footer {
    align-items: stretch;
    background: var(--ink);
    gap: 0;
    max-width: none;
    padding: 1.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    width: 100%;
  }

  .home footer .brand {
    justify-self: start;
    margin-bottom: 0.65rem;
  }

  .home footer .brand img {
    width: 142px;
  }

  .home footer nav {
    display: grid;
    border-top: 1px solid rgb(255 255 255 / 12%);
    font-size: 0.8rem;
    gap: 0 1.1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .home footer nav a {
    align-items: center;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    color: rgb(255 253 249 / 88%);
    display: flex;
    justify-content: flex-start;
    line-height: 1.25;
    min-height: 44px;
    padding: 0.65rem 0;
    text-align: left;
  }

  .home footer nav a:hover {
    background: transparent;
    color: #fff;
  }

  .home footer nav .support-project,
  .home footer nav .support-project:hover {
    background: var(--orange);
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    color: var(--ink);
    font-weight: 800;
    grid-column: 1 / -1;
    justify-content: center;
    margin: 0.7rem 0 0.15rem;
    min-height: 48px;
    padding: 0.7rem 1rem;
    text-align: center;
    transform: none;
  }

  .home footer small {
    color: rgb(255 253 249 / 55%);
    font-size: 0.74rem;
    line-height: 1.4;
    margin-top: 1.1rem;
    width: 100%;
  }

  .legal {
    padding-top: 3.5rem;
  }

  .legal h1 {
    font-size: clamp(2.25rem, 9.8vw, 2.55rem);
    line-height: 0.98;
  }

  .legal-nav nav {
    font-size: 0.8rem;
    gap: 0.8rem;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .legal-toc strong {
    grid-column: auto;
  }

  .legal-form .amount-row {
    grid-template-columns: 1fr;
  }

  .legal-note {
    margin-bottom: 2.5rem;
  }
}

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