* {
  box-sizing: border-box;
}

:root {
  --blue: #0353FF;
  --blue-dark: #003FCC;
  --ink: #111217;
  --muted: #646874;
  --soft: #F5F7FC;
  --line: #E6E9F2;
  --white: #FFFFFF;
  --radius-xl: 32px;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 50px rgba(17, 18, 23, 0.08);
  --shadow-blue: 0 28px 80px rgba(3, 83, 255, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

/* Header */

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: normal;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: normal;
}

nav a {
  text-decoration: none;
}

.nav-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.nav-button,
.primary-button {
  color: var(--white);
  background: var(--blue);
}

.nav-button {
  min-height: 44px;
  padding: 0 20px;
}

.secondary-button {
  color: var(--blue);
  background: rgba(3, 83, 255, 0.09);
}

.primary-button.light {
  color: var(--blue);
  background: var(--white);
}

.nav-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.nav-button:active,
.primary-button:active,
.secondary-button:active {
  transform: translateY(0);
}

/* Home hero */

.hero {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 86px;
  min-height: 720px;
  padding: clamp(48px, 6vw, 78px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 84% 22%, rgba(255,255,255,0.18), transparent 26%),
    linear-gradient(135deg, var(--blue), #004CFA);
  box-shadow: var(--shadow-blue);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: normal;
  text-transform: uppercase;
}

.hero .eyebrow,
.split-section .eyebrow,
.cta-panel .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 7.5vw, 6.8rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: normal;
}

.hero-text {
  max-width: 520px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.small-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: normal;
}

.hero-art {
  position: relative;
  min-height: 600px;
}

.phone-preview {
  position: absolute;
  width: min(350px, 38vw);
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.25);
}

.phone-front {
  right: 130px;
  top: 34px;
  z-index: 2;
  transform: rotate(-5deg);
}

.phone-back {
  right: -6px;
  bottom: 32px;
  z-index: 1;
  opacity: 0.86;
  transform: rotate(5deg);
}

/* Main statement */

.statement {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto 78px;
  text-align: center;
}

.statement h2,
.split-section h2,
.cta-panel h2,
.faq-section h2,
.support-card h2,
.legal-card h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: normal;
}

.statement p {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: normal;
}

/* Feature cards */

.features {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 92px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card,
.support-card,
.legal-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature-number {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: normal;
}

.feature-card h3 {
  margin: 26px 0 12px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: normal;
}

.feature-card p,
.split-section p,
.support-card p,
.support-card li,
.faq-section p,
.legal-card p,
.legal-card li {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
  font-weight: 600;
  letter-spacing: normal;
}

/* Blue split section */

.split-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 92px;
  min-height: 660px;
  padding: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.14), transparent 24%),
    var(--blue);
  box-shadow: var(--shadow-blue);
}

.split-section h2 {
  max-width: 660px;
}

.split-section p {
  max-width: 680px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.split-section img {
  width: min(330px, 34vw);
  max-height: 560px;
  justify-self: center;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  transform: rotate(-5deg);
}

/* CTA */

.cta-panel {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 92px;
  padding: clamp(64px, 8vw, 104px);
  text-align: center;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-blue);
}

.cta-panel h2 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.cta-panel p {
  max-width: 620px;
  margin: 22px auto 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 650;
  letter-spacing: normal;
}

/* Footer */

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: normal;
}

.site-footer div {
  display: flex;
  gap: 22px;
}

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

/* Support and privacy pages */

.page-hero {
  width: min(980px, calc(100% - 48px));
  margin: 38px auto 48px;
  padding: clamp(48px, 6vw, 74px);
  border-radius: var(--radius-xl);
  background: var(--soft);
}

.support-hero {
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow-blue);
}

.support-hero .eyebrow,
.support-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: normal;
}

.support-grid {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.support-card h2 {
  margin-bottom: 18px;
  font-size: 1.75rem;
  line-height: 1.1;
}

.support-card ol,
.support-card ul {
  margin: 0;
  padding-left: 22px;
}

.support-card li + li {
  margin-top: 8px;
}

.accent-card {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.accent-card p {
  color: rgba(255, 255, 255, 0.76);
}

.light-note {
  color: rgba(255, 255, 255, 0.64) !important;
}

/* FAQ */

.faq-section,
.legal-page .legal-card {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto 92px;
}

.faq-section h2 {
  margin-bottom: 26px;
  font-size: 3rem;
  line-height: 1;
}

details {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

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

summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: normal;
}

details p {
  max-width: 740px;
  margin-top: 12px;
}

/* Legal */

.legal-card h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 1.7rem;
  line-height: 1.15;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-card a {
  color: var(--blue);
  font-weight: 800;
}

/* Responsive */

@media (max-width: 980px) {
  .hero,
  .split-section,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 560px;
  }

  .phone-preview {
    width: min(310px, 44vw);
  }

  .phone-front {
    right: 36%;
    top: 10px;
  }

  .phone-back {
    right: 8%;
    bottom: 16px;
  }

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

  .split-section {
    min-height: auto;
  }

  .split-section img {
    width: min(310px, 62vw);
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 32px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero,
  .statement,
  .features,
  .split-section,
  .cta-panel,
  .page-hero,
  .support-grid,
  .faq-section,
  .legal-page .legal-card,
  .site-footer {
    width: calc(100% - 32px);
  }

  .hero,
  .split-section,
  .cta-panel,
  .page-hero {
    border-radius: 24px;
  }

  .hero {
    margin-top: 16px;
    padding: 36px 28px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(3.4rem, 15vw, 5rem);
  }

  .statement h2,
  .split-section h2,
  .cta-panel h2 {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .hero-text,
  .statement p,
  .cta-panel p,
  .page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-art {
    min-height: 420px;
  }

  .phone-preview {
    width: min(235px, 54vw);
  }

  .phone-front {
    right: 28%;
    top: 0;
  }

  .phone-back {
    right: -4%;
    bottom: 0;
  }

  .feature-card,
  .support-card,
  .legal-card {
    padding: 26px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .brand span {
    display: none;
  }

  nav a:not(.nav-button) {
    display: none;
  }

  nav {
    justify-content: flex-end;
  }

  .hero {
    padding: 32px 22px;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-art {
    min-height: 350px;
  }

  .phone-preview {
    width: 205px;
  }

  .phone-front {
    right: 24%;
  }

  .phone-back {
    right: -12%;
  }
}

/* Minimal app-style homepage */

body.minimal-home {
  min-height: 100vh;
  margin: 0;
  color: #ffffff;
  background: #0353FF;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.minimal-home-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.minimal-center {
  width: min(100%, 560px);
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(2vh);
  text-align: center;
}

.minimal-center h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(4.2rem, 10vw, 7.4rem);
  line-height: 0.9;
  font-weight: 850;
  letter-spacing: normal;
}

.minimal-time {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: normal;
}

.minimal-links {
  margin-top: clamp(110px, 18vh, 190px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(56px, 8vh, 86px);
}

.minimal-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: normal;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.minimal-links a:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

.minimal-links .minimal-download {
  margin-top: 2px;
  padding: 18px 30px 20px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: #ffffff;
  color: #0353FF;
  font-size: clamp(1.35rem, 3.3vw, 2.2rem);
  font-weight: 750;
}

@media (max-width: 600px) {
  .minimal-home-main {
    padding: 24px 20px;
  }

  .minimal-center {
    min-height: 62vh;
    transform: translateY(1vh);
  }

  .minimal-center h1 {
    font-size: clamp(3.6rem, 16vw, 5.5rem);
  }

  .minimal-time {
    font-size: clamp(1.45rem, 7vw, 2.25rem);
  }

  .minimal-links {
    margin-top: clamp(90px, 16vh, 150px);
    gap: clamp(48px, 7.5vh, 72px);
  }

  .minimal-links a {
    font-size: clamp(2.3rem, 11vw, 3.8rem);
  }

  .minimal-links .minimal-download {
    padding: 15px 24px 17px;
    font-size: clamp(1.15rem, 5.5vw, 1.7rem);
  }
}

/* Mobile fix: keep minimal homepage links visible */
@media (max-width: 480px) {
  body.minimal-home nav.minimal-links {
    display: flex;
    justify-content: center;
  }

  body.minimal-home nav.minimal-links a,
  body.minimal-home nav.minimal-links a:not(.nav-button) {
    display: inline-flex;
  }
}

/* Support/mobile layout fix */
@media (max-width: 720px) {
  body:not(.minimal-home) .site-header {
    width: calc(100% - 32px);
    padding: 18px 0 22px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  body:not(.minimal-home) .brand {
    flex-shrink: 0;
  }

  body:not(.minimal-home) .brand img {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  body:not(.minimal-home) .brand span {
    display: none;
  }

  body:not(.minimal-home) .site-header nav {
    width: auto;
    display: flex;
    justify-content: flex-end;
    gap: 0;
  }

  body:not(.minimal-home) .site-header nav a:not(.nav-button) {
    display: none;
  }

  body:not(.minimal-home) .site-header .nav-button {
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 1rem;
    line-height: 1;
  }

  body:not(.minimal-home) .page-hero {
    width: calc(100% - 32px);
    margin: 18px auto 34px;
    padding: 38px 30px 44px;
    border-radius: 28px;
  }

  body:not(.minimal-home) .page-hero h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: normal;
  }

  body:not(.minimal-home) .page-hero p:not(.eyebrow) {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.45;
  }

  body:not(.minimal-home) .page-hero:not(.support-hero) p:not(.eyebrow) {
    color: var(--muted);
  }

  body:not(.minimal-home) .eyebrow {
    margin-bottom: 22px;
    font-size: 0.82rem;
  }

  body:not(.minimal-home) .support-grid,
  body:not(.minimal-home) .faq-section,
  body:not(.minimal-home) .legal-page .legal-card {
    width: calc(100% - 32px);
  }

  body:not(.minimal-home) .support-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body:not(.minimal-home) .support-card,
  body:not(.minimal-home) .legal-card {
    padding: 26px;
    border-radius: 22px;
  }

  body:not(.minimal-home) .support-card h2 {
    font-size: 1.55rem;
  }

  body:not(.minimal-home) .support-card p,
  body:not(.minimal-home) .support-card li,
  body:not(.minimal-home) .faq-section p,
  body:not(.minimal-home) .legal-card p,
  body:not(.minimal-home) .legal-card li {
    font-size: 0.98rem;
    line-height: 1.55;
  }
}

@media (max-width: 420px) {
  body:not(.minimal-home) .site-header {
    width: calc(100% - 24px);
  }

  body:not(.minimal-home) .brand img {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  body:not(.minimal-home) .site-header .nav-button {
    min-height: 48px;
    padding: 0 22px;
    font-size: 0.95rem;
  }

  body:not(.minimal-home) .page-hero,
  body:not(.minimal-home) .support-grid,
  body:not(.minimal-home) .faq-section,
  body:not(.minimal-home) .legal-page .legal-card {
    width: calc(100% - 24px);
  }

  body:not(.minimal-home) .page-hero {
    padding: 34px 26px 40px;
  }

  body:not(.minimal-home) .page-hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.1rem);
  }
}
