:root {
  --brand: #a33029;
  --brand-deep: #771f1c;
  --brand-light: #e5754d;
  --peach: #fde5db;
  --peach-deep: #e8bcb0;
  --violet: #544b76;
  --green: #0b9f24;
  --gold: #f2b670;
  --ink: #292724;
  --ink-soft: #605b55;
  --paper: #fffaf7;
  --surface: #ffffff;
  --line: #e8ddd7;
  --shadow: 0 24px 70px rgba(75, 34, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Be Vietnam Pro", "Noto Sans",
    "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Telugu",
    "Hiragino Sans", "Yu Gothic", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
}

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

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

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--brand);
  color: white;
}

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

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

.section-pad {
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #f7c8b8;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  padding: 0 20px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: white;
  color: var(--brand-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--brand-deep);
  font-weight: 750;
  padding-block: 7px;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

[dir="rtl"] .text-link:hover span {
  transform: translateX(-4px);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  inset-block-start: 0;
  border-bottom: 1px solid rgba(163, 48, 41, 0.1);
  background: rgba(255, 250, 247, 0.9);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: min(100%, 1320px);
  min-height: 78px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
}

.site-header__brand,
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.site-header__icon {
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(84, 75, 118, 0.18);
}

.site-header__brand-name,
.site-footer__brand-name {
  color: var(--brand-deep);
  font-size: 1.04rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header__nav-link {
  position: relative;
  color: #514b47;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}

.site-header__nav-link::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -8px;
  height: 2px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-header__nav-link:hover::after,
.site-header__nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switcher__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.language-switcher__select {
  min-height: 42px;
  max-width: 118px;
  border: 1px solid var(--line);
  border-radius: 10px;
  appearance: auto;
  background: white;
  color: var(--ink);
  cursor: pointer;
  padding-inline: 11px;
  font-size: 0.82rem;
  font-weight: 700;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid #191817;
  border-radius: 12px;
  background: #191817;
  color: white;
  padding: 8px 15px;
  box-shadow: 0 10px 24px rgba(41, 39, 36, 0.15);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(41, 39, 36, 0.22);
}

.app-store-button--light {
  border-color: white;
  background: white;
  color: var(--ink);
}

.app-store-button__apple {
  width: 26px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  text-align: center;
}

.app-store-button__copy {
  display: grid;
  line-height: 1.03;
}

.app-store-button__eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.03em;
}

.app-store-button__title {
  font-size: 1.02rem;
  font-weight: 700;
}

.site-header__store-button {
  min-height: 44px;
  padding: 5px 12px;
}

.site-header__store-button .app-store-button__apple {
  font-size: 1.55rem;
}

.site-header__store-button .app-store-button__title {
  font-size: 0.87rem;
}

.site-header__mobile-menu {
  display: none;
}

/* Home hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: clamp(38px, 7vw, 98px);
  min-height: 760px;
  padding-block: 74px 90px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 800px;
  margin-block-end: 24px;
  font-size: clamp(3.2rem, 6.4vw, 6.35rem);
  line-height: 0.91;
}

.hero h1 span {
  display: block;
  color: var(--brand);
}

.hero-intro {
  max-width: 650px;
  margin-block-end: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: #6f6762;
  font-size: 0.83rem;
  font-weight: 650;
}

.proof-list li::before {
  margin-inline-end: 7px;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  border: 1px solid #efd5cb;
  border-radius: 38% 14% 28% 18% / 18% 30% 15% 28%;
  background: linear-gradient(145deg, #ffe8df 0%, #e9e3ec 100%);
}

.hero-visual::before {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(163, 48, 41, 0.15);
  border-radius: inherit;
  content: "";
}

.hero-halo {
  position: absolute;
  border: 2px solid rgba(163, 48, 41, 0.17);
  border-radius: 50%;
}

.hero-halo-one {
  width: 150px;
  height: 150px;
  inset-block-start: -36px;
  inset-inline-end: -26px;
}

.hero-halo-two {
  width: 74px;
  height: 74px;
  inset-block-end: 54px;
  inset-inline-start: -20px;
}

.hero-brand-mark {
  position: absolute;
  z-index: 0;
  width: 128px;
  inset-block-start: 22px;
  inset-inline-start: 18px;
  opacity: 0.82;
  transform: rotate(-10deg);
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(79%, 405px);
  border: 8px solid #23211f;
  border-radius: 48px;
  background: #23211f;
  box-shadow: 0 34px 60px rgba(41, 39, 36, 0.28);
  transform: rotate(3deg);
}

.phone-frame img {
  width: 100%;
  border-radius: 39px;
}

.phone-speaker {
  position: absolute;
  z-index: 3;
  width: 26%;
  height: 17px;
  inset-block-start: 9px;
  inset-inline-start: 37%;
  border-radius: 999px;
  background: #171616;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  max-width: 190px;
  gap: 9px;
  border: 1px solid rgba(163, 48, 41, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 15px;
  box-shadow: 0 14px 34px rgba(55, 35, 31, 0.15);
  font-size: 0.76rem;
  font-weight: 750;
}

.floating-note-income {
  inset-block-start: 22%;
  inset-inline-end: -42px;
}

.floating-note-budget {
  inset-block-end: 18%;
  inset-inline-start: -50px;
}

.signal-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px currentColor;
}

.signal-green {
  color: rgba(11, 159, 36, 0.18);
  background: var(--green);
}

.signal-gold {
  color: rgba(242, 182, 112, 0.25);
  background: #d98420;
}

/* Feature system */
.feature-section {
  padding-block: 110px 120px;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  margin-block-end: 46px;
}

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

.section-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 70px;
}

.section-heading-split p:last-child {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}

.feature-card {
  position: relative;
  min-height: 310px;
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  background: white;
  padding: 36px;
  transition: background 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  z-index: 1;
  background: #fff8f4;
  transform: translateY(-4px);
}

.feature-index {
  color: #b2a7a1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  margin-block: 26px 32px;
  border: 1px solid currentColor;
  border-radius: 50% 50% 18% 50%;
  place-items: center;
  color: var(--brand);
  background: var(--peach);
  font-weight: 850;
}

.feature-card-2 .feature-symbol,
.feature-card-5 .feature-symbol {
  color: var(--violet);
  background: #f1e9f7;
}

.feature-card-3 .feature-symbol,
.feature-card-6 .feature-symbol {
  color: #396264;
  background: #daeff0;
}

.feature-card h3 {
  margin-block-end: 12px;
  font-size: 1.32rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Visual story and gallery */
.visual-story {
  padding-block: 104px 54px;
}

.visual-story-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.25fr);
  align-items: center;
  min-height: 480px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--brand-deep);
  color: white;
  box-shadow: var(--shadow);
}

.visual-story-copy {
  padding: clamp(34px, 6vw, 76px);
}

.visual-story-copy h2 {
  margin-block-end: 20px;
}

.visual-story-copy > p:not(.eyebrow) {
  color: #f4d8ce;
  line-height: 1.7;
}

.visual-story-card > img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
}

.gallery-section {
  padding-block: 86px 120px;
}

.screenshot-gallery__title {
  max-width: 760px;
  margin-block-end: 36px;
}

.screenshot-gallery__track {
  display: grid;
  grid-auto-columns: minmax(250px, 30%);
  grid-auto-flow: column;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 16px 4px 30px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--brand-light) transparent;
}

.screenshot-gallery__item {
  margin: 0;
  scroll-snap-align: start;
}

.screenshot-gallery__image {
  width: 100%;
  border: 1px solid #d7cbc5;
  border-radius: 26px;
  background: #e7edf1;
  box-shadow: 0 18px 45px rgba(41, 39, 36, 0.12);
}

.screenshot-gallery__caption {
  margin-block-start: 14px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-cta {
  padding-block: 0 110px;
}

.final-cta-inner {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  border-radius: 22px;
  background: var(--brand);
  color: white;
  padding: clamp(32px, 5vw, 62px);
}

.final-cta-inner > img {
  width: 100px;
  border-radius: 22px;
}

.final-cta-inner h2 {
  margin-block-end: 12px;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.final-cta-inner p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: #f8d8cf;
  line-height: 1.65;
}

.final-cta-simple {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* App information */
.page-hero {
  padding-block: 94px 84px;
}

.page-hero-app {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr);
  align-items: center;
  gap: 70px;
}

.page-hero h1,
.page-heading h1,
.legal-hero h1 {
  margin-block-end: 24px;
  font-size: clamp(3rem, 6.3vw, 6.2rem);
  line-height: 0.96;
}

.page-lead,
.page-heading > p:last-child,
.legal-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.5vw, 1.23rem);
  line-height: 1.7;
}

.page-hero .app-store-button {
  margin-block-start: 12px;
}

.page-hero-app > img {
  width: 100%;
  border: 1px solid #ddcfca;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  padding-block: 100px;
  border-block: 1px solid var(--line);
  background: white;
}

.story-visual {
  position: relative;
  display: grid;
  min-height: 470px;
  place-items: center;
  border-radius: 42% 20% 45% 15%;
  background: var(--peach);
}

.story-visual > img {
  width: 230px;
  max-height: 390px;
  object-fit: contain;
}

.theme-palette {
  position: absolute;
  display: flex;
  gap: 8px;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  border-radius: 999px;
  background: white;
  padding: 9px 12px;
  box-shadow: 0 9px 24px rgba(55, 35, 31, 0.13);
}

.theme-palette span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.story-copy h2 {
  margin-block-end: 28px;
}

.story-copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.details-section {
  padding-block: 100px 120px;
}

.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-block-start: 1px solid var(--ink);
}

.details-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  border-block-end: 1px solid var(--line);
  padding: 25px 20px 25px 0;
}

.details-list > div:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
}

.details-list > div:nth-child(even) {
  padding-inline-start: 28px;
}

.details-list dt {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.details-list dd {
  margin: 0;
  font-weight: 720;
}

/* Contact */
.contact-page {
  padding-block: 96px 120px;
}

.centered-heading {
  display: grid;
  justify-items: center;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-block-start: 62px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  border: 1px solid var(--line);
  background: white;
  padding: 34px;
}

.contact-card-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.contact-marker {
  display: grid;
  width: 52px;
  height: 52px;
  margin-block-end: 54px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  color: var(--brand);
  font-size: 1.18rem;
  font-weight: 850;
}

.contact-card-primary .contact-marker {
  color: white;
}

.contact-marker-time {
  font-size: 0.78rem;
}

.contact-card h2 {
  margin-block-end: 14px;
  font-size: 1.55rem;
}

.contact-card p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.contact-card-primary p {
  color: #f7d6cb;
}

.contact-card a {
  margin-block-start: auto;
  font-weight: 800;
}

.contact-card small {
  margin-block-start: 9px;
  opacity: 0.74;
}

.support-note {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  max-width: 950px;
  margin: 82px auto 0;
  border-block: 1px solid var(--line);
  padding-block: 42px;
}

.support-note img {
  border-radius: 22px;
}

.support-note h2 {
  margin-block-end: 10px;
  font-size: 1.7rem;
}

.support-note p {
  margin-block-end: 8px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.support-note .fine-print {
  color: #8a817c;
  font-size: 0.82rem;
}

/* Legal */
.legal-page {
  padding-block: 90px 120px;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.28fr);
  column-gap: 80px;
  padding-block-end: 62px;
  border-block-end: 1px solid var(--ink);
}

.legal-hero .eyebrow,
.legal-hero h1 {
  grid-column: 1;
}

.legal-hero > p:not(.eyebrow) {
  grid-column: 1;
}

.legal-hero__actions {
  grid-column: 1;
  margin-block-start: 8px;
}

.legal-date {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 28px;
}

.legal-date span,
.legal-date strong {
  display: block;
}

.legal-date span {
  margin-block-end: 7px;
  color: #877d77;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-date strong {
  font-size: 1.02rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: 70px;
  padding-block-start: 62px;
}

.legal-layout > aside {
  position: sticky;
  inset-block-start: 130px;
  align-self: start;
  display: grid;
  justify-items: center;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-layout > aside img {
  width: 84px;
  max-height: 114px;
  margin-block-end: 14px;
  object-fit: contain;
}

.terms-monogram {
  display: grid;
  width: 86px;
  height: 86px;
  margin-block-end: 14px;
  border: 1px solid var(--brand);
  border-radius: 50% 50% 20% 50%;
  place-items: center;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
}

.legal-content > section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  border-block-end: 1px solid var(--line);
  padding-block: 0 38px;
  margin-block-end: 38px;
}

.legal-content > section[id] {
  scroll-margin-top: 120px;
}

.legal-number {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.legal-content h2 {
  margin-block-end: 16px;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.15;
}

.legal-content p {
  max-width: 820px;
  color: var(--ink-soft);
  line-height: 1.78;
}

.legal-content a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-content .legal-contact {
  border: 1px solid var(--peach-deep);
  background: #fff3ee;
  padding: 30px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: white;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, 0.75fr);
  gap: 70px;
  width: min(100%, 1320px);
  margin-inline: auto;
  padding: 68px clamp(22px, 5vw, 72px);
}

.site-footer__brand {
  align-items: center;
}

.site-footer__logo {
  width: 48px;
  height: 64px;
  object-fit: contain;
}

.site-footer__brand-name {
  color: white;
  font-size: 1.25rem;
}

.site-footer__copyright {
  margin: 20px 0 0;
  color: #bdb6b0;
  font-size: 0.78rem;
}

.site-footer__nav {
  display: grid;
  gap: 12px;
}

.site-footer__nav-link,
.site-footer__contact-link {
  color: #ded8d4;
  font-size: 0.88rem;
}

.site-footer__nav-link:hover,
.site-footer__contact-link:hover {
  color: white;
}

.site-footer__contact {
  display: grid;
  align-content: start;
  gap: 11px;
  font-style: normal;
}

.site-footer__developer {
  margin-block-end: 8px;
  color: #f1b9aa;
  font-size: 0.82rem;
  font-weight: 750;
}

/* RTL adjustments */
[dir="rtl"] .phone-frame {
  transform: rotate(-3deg);
}

[dir="rtl"] .app-store-button,
[dir="rtl"] .phone-frame,
[dir="rtl"] .screenshot-gallery__track {
  direction: ltr;
}

[dir="rtl"] .app-store-button__copy {
  direction: rtl;
  text-align: start;
}

/* Responsive */
@media (max-width: 1120px) {
  .site-header__nav,
  .site-header__actions {
    display: none;
  }

  .site-header__mobile-menu {
    position: relative;
    display: block;
    margin-inline-start: auto;
  }

  .site-header__mobile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
    padding-inline: 14px;
    font-weight: 750;
  }

  .site-header__mobile-toggle::-webkit-details-marker {
    display: none;
  }

  .site-header__mobile-panel {
    position: absolute;
    width: min(330px, calc(100vw - 36px));
    inset-block-start: 52px;
    inset-inline-end: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    padding: 18px;
    box-shadow: var(--shadow);
  }

  .site-header__mobile-nav {
    display: grid;
    margin-block-end: 16px;
  }

  .site-header__mobile-link {
    border-block-end: 1px solid var(--line);
    padding-block: 11px;
    font-weight: 700;
  }

  .site-header__mobile-link[aria-current="page"] {
    color: var(--brand);
  }

  .site-header__mobile-language,
  .site-header__mobile-language .language-switcher__select {
    width: 100%;
    max-width: none;
  }

  .site-header__mobile-store-button {
    width: 100%;
    margin-block-start: 12px;
    justify-content: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 38px;
  }

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

  .floating-note-income {
    inset-inline-end: -12px;
  }

  .floating-note-budget {
    inset-inline-start: -12px;
  }
}

@media (max-width: 900px) {
  .hero,
  .page-hero-app,
  .story-section,
  .visual-story-card,
  .legal-hero,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block-start: 58px;
  }

  .hero-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

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

  .visual-story-card > img {
    min-height: 0;
  }

  .visual-story-copy {
    padding-block-end: 26px;
  }

  .screenshot-gallery__track {
    grid-auto-columns: minmax(230px, 44%);
  }

  .page-hero-app {
    gap: 44px;
  }

  .story-visual {
    width: min(100%, 580px);
    margin-inline: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 280px;
  }

  .contact-marker {
    margin-block-end: 34px;
  }

  .legal-date {
    grid-column: 1;
    grid-row: auto;
    margin-block-start: 24px;
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
    padding: 20px 0 0;
  }

  .legal-layout > aside {
    position: static;
    display: none;
  }

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

  .site-footer__contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header__inner {
    min-height: 68px;
  }

  .site-header__brand-name {
    font-size: 0.95rem;
  }

  .site-header__mobile-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .hero {
    min-height: auto;
    padding-block: 56px 72px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .hero-visual {
    min-height: 510px;
    border-radius: 30% 12% 26% 14%;
  }

  .phone-frame {
    width: 82%;
    border-width: 5px;
    border-radius: 34px;
  }

  .phone-frame img {
    border-radius: 28px;
  }

  .phone-speaker {
    height: 12px;
    inset-block-start: 6px;
  }

  .floating-note {
    max-width: 150px;
    padding: 9px 11px;
    font-size: 0.66rem;
  }

  .feature-section,
  .details-section,
  .story-section {
    padding-block: 74px;
  }

  .section-heading-split,
  .details-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 260px;
  }

  .visual-story {
    padding-block-start: 68px;
  }

  .visual-story-card {
    border-radius: 18px;
  }

  .gallery-section {
    padding-block: 68px 90px;
  }

  .screenshot-gallery__track {
    grid-auto-columns: minmax(240px, 78%);
  }

  .final-cta {
    padding-block-end: 78px;
  }

  .final-cta-inner,
  .final-cta-simple {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .final-cta-inner > img {
    width: 74px;
  }

  .page-hero,
  .contact-page,
  .legal-page {
    padding-block: 68px 88px;
  }

  .details-list > div,
  .details-list > div:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 6px;
    border-inline-end: 0;
    padding-inline: 0;
  }

  .support-note {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 20px;
  }

  .legal-content > section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-content .legal-contact {
    padding: 24px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .site-footer__contact {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
