:root {
  color-scheme: light;
  --accent: #FC4C02;
  --accent-strong: #E04300;
  --accent-soft: rgba(252, 76, 2, 0.13);
  --bg: #F7F7F4;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --surface: #FFFFFF;
  --surface-muted: #ECEFEB;
  --text: #171717;
  --text-muted: #636363;
  --border: rgba(23, 23, 23, 0.12);
  --shadow: 0 22px 70px rgba(43, 34, 27, 0.14);
  --max-width: 1120px;
}

:root[data-resolved-theme="dark"] {
  color-scheme: dark;
  --accent: #FD8D5D;
  --accent-strong: #FFA479;
  --accent-soft: rgba(253, 141, 93, 0.18);
  --bg: #0D0E10;
  --bg-elevated: rgba(24, 25, 28, 0.76);
  --surface: #17181C;
  --surface-muted: #24262B;
  --text: #F8F7F4;
  --text-muted: #A9A9AE;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  background:
    radial-gradient(circle at top left, var(--accent-soft), transparent 32rem),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 86%, var(--surface-muted)));
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

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

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

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

.header-inner,
.section-shell,
.feature-inner,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(22px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand-mark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.header-icon {
  width: 38px;
  height: 38px;
}

.icon-pair {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.icon-pair img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

:root[data-resolved-theme="light"] .icon-dark,
:root[data-resolved-theme="light"] .shot-dark,
:root[data-resolved-theme="dark"] .icon-light,
:root[data-resolved-theme="dark"] .shot-light {
  opacity: 0;
  pointer-events: none;
}

:root[data-resolved-theme="light"] .icon-light,
:root[data-resolved-theme="light"] .shot-light,
:root[data-resolved-theme="dark"] .icon-dark,
:root[data-resolved-theme="dark"] .shot-dark {
  opacity: 1;
}

.header-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.header-actions > a,
.footer-links a {
  color: var(--text-muted);
  font-weight: 700;
}

.header-actions > a:hover,
.footer-links a:hover {
  color: var(--text);
}

.theme-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-width: 178px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.theme-toggle button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 5px 18px color-mix(in srgb, var(--accent) 34%, transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: 0;
  padding: 28px 0 52px;
}

.hero-copy {
  min-width: 0;
  max-width: 520px;
}

.hero-icon {
  width: clamp(84px, 12vw, 120px);
  height: clamp(84px, 12vw, 120px);
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 7rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-slogan {
  max-width: 430px;
  margin: 22px 0 28px;
  color: var(--text-muted);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 192px;
  max-width: 100%;
  min-height: 64px;
  justify-content: flex-start;
  padding: 12px 24px;
  border-radius: 18px;
  background: #101010;
  color: #FFFFFF;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: var(--shadow);
}

:root[data-resolved-theme="dark"] .app-store-button {
  background: #F8F7F4;
  color: #101010;
}

.apple-logo {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: currentColor;
}

.app-store-text {
  display: flex;
  flex-direction: column;
}

.download-kicker {
  font-size: 0.75rem;
  font-weight: 800;
}

.privacy-hero {
  padding: clamp(56px, 9vw, 108px) 0 clamp(28px, 5vw, 52px);
}

.privacy-hero h1 {
  max-width: 780px;
  font-size: clamp(3.35rem, 9vw, 7rem);
}

.privacy-summary {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.22rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.18;
}

.policy-updated {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.privacy-content {
  display: grid;
  gap: 0;
  max-width: 860px;
  padding-bottom: clamp(56px, 9vw, 108px);
}

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

.policy-section:last-child {
  border-bottom: 1px solid var(--border);
}

.policy-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.policy-section p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  font-weight: 650;
}

.policy-section ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 650;
}

.policy-section a {
  color: var(--accent-strong);
  font-weight: 850;
}

.policy-section a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
}

.hero-phone {
  display: grid;
  margin: 0;
  aspect-ratio: 735 / 1485;
}

.hero-phone img,
.feature-phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-phone .shot-light,
.hero-phone .shot-dark {
  grid-area: 1 / 1;
}

.hero-phone-main {
  width: min(44vw, 280px);
  transform: rotate(-3deg) translateX(-54px);
}

.hero-phone-side {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(34vw, 210px);
  transform: rotate(5deg) translateY(10px);
}

.feature-section {
  padding: clamp(48px, 8vw, 108px) 0;
  border-top: 1px solid var(--border);
}

.feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 215px);
  align-items: center;
  gap: clamp(28px, 7vw, 84px);
}

.feature-inner-reverse {
  grid-template-columns: minmax(130px, 215px) minmax(0, 1fr);
}

.feature-inner-reverse .feature-copy {
  order: 2;
}

.feature-copy h2 {
  max-width: 670px;
  margin: 0;
  font-size: 4.5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.feature-copy p:not(.eyebrow) {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 1.22rem;
  font-weight: 650;
}

.feature-copy {
  min-width: 0;
}

.feature-phone {
  display: grid;
  width: min(100%, 195px);
  aspect-ratio: 735 / 1485;
  margin: 0;
  justify-self: center;
}

.feature-edit {
  background-color: var(--surface-muted);
  background: color-mix(in srgb, var(--surface-muted) 54%, transparent);
}

.feature-glass {
  background-color: var(--surface);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 38%),
    color-mix(in srgb, var(--surface) 52%, transparent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--border);
}

.footer-copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.footer-icon {
  width: 34px;
  height: 34px;
}

@media (max-width: 960px) {
  .hero,
  .feature-inner,
  .feature-inner-reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 36px;
    padding: 36px 0 48px;
  }

  .hero-copy {
    max-width: 620px;
  }

  h1 {
    font-size: 5.5rem;
  }

  .hero-slogan {
    font-size: 1.6rem;
  }

  .feature-copy h2 {
    font-size: 3.25rem;
  }

  .hero-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: clamp(12px, 4vw, 28px);
    width: min(100%, 500px);
    min-height: 0;
    padding-inline: clamp(12px, 5vw, 36px);
    justify-self: center;
  }

  .hero-phone-main {
    width: min(100%, 200px);
    transform: none;
    justify-self: end;
  }

  .hero-phone-side {
    position: static;
    width: min(86%, 170px);
    transform: none;
    justify-self: start;
  }

  .feature-inner-reverse .feature-copy {
    order: 0;
  }

  .feature-inner,
  .feature-inner-reverse {
    gap: 32px;
  }

  .feature-phone {
    width: min(36vw, 180px);
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .feature-inner,
  .header-inner,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .header-inner {
    gap: 10px;
    padding: 10px 0;
  }

  .header-icon {
    width: 32px;
    height: 32px;
  }

  .brand-mark {
    gap: 8px;
    font-size: 0.95rem;
  }

  .theme-toggle {
    min-width: 0;
    width: clamp(156px, 46vw, 178px);
    padding: 3px;
  }

  .theme-toggle button {
    min-height: 30px;
    padding-inline: 4px;
    font-size: 0.72rem;
  }

  .hero {
    gap: 28px;
    padding: 28px 0 40px;
  }

  .hero-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
  }

  .hero-slogan {
    margin: 12px 0 16px;
  }

  .app-store-button {
    min-height: 52px;
    padding: 8px 18px;
    border-radius: 15px;
  }

  .apple-logo {
    width: 22px;
    height: 22px;
  }

  .hero-visual {
    gap: 12px;
    width: min(100%, 360px);
    padding-inline: 8px;
  }

  .hero-phone-main {
    width: min(100%, 150px);
  }

  .hero-phone-side {
    width: min(88%, 132px);
  }

  h1 {
    font-size: 4rem;
  }

  .hero-slogan {
    font-size: 1.25rem;
  }

  .feature-copy h2 {
    font-size: 2.35rem;
  }

  .feature-copy p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 1.05rem;
  }

  .feature-section {
    padding: 40px 0;
  }

  .feature-inner,
  .feature-inner-reverse {
    gap: 24px;
  }

  .feature-phone {
    width: clamp(140px, 44vw, 180px);
  }

  .privacy-hero {
    padding: 44px 0 28px;
  }

  .privacy-hero h1 {
    font-size: 3rem;
  }

  .privacy-summary {
    margin-top: 20px;
    font-size: 1.2rem;
  }

  .privacy-content {
    padding-bottom: 56px;
  }

  .policy-section {
    padding: 24px 0;
  }

  .policy-section p,
  .policy-section ul {
    font-size: 1rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0 32px;
  }

  .footer-copyright {
    text-align: left;
  }

  .footer-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 8px;
  }

  .header-icon {
    width: 28px;
    height: 28px;
  }

  .brand-mark {
    font-size: 0.9rem;
  }

  .theme-toggle {
    width: 150px;
  }

  .hero {
    gap: 24px;
    padding: 24px 0 32px;
  }

  .hero-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-slogan {
    margin: 8px 0 12px;
    font-size: 1.05rem;
  }

  .app-store-button {
    min-height: 48px;
  }

  .hero-visual {
    padding-inline: 4px;
  }

  .hero-phone-main {
    width: min(100%, 132px);
  }

  .hero-phone-side {
    width: min(88%, 116px);
  }

  .feature-copy h2 {
    font-size: 2.05rem;
  }

  .privacy-hero h1 {
    font-size: 2.5rem;
  }

  .privacy-summary {
    font-size: 1.1rem;
  }
}

@media (max-width: 300px) {
  .brand-mark > span:last-child {
    display: none;
  }

  .theme-toggle {
    width: min(156px, calc(100vw - 76px));
  }

  h1 {
    font-size: 2.65rem;
  }

  .feature-phone {
    width: min(140px, 56vw);
  }
}
