/*
Theme Name: Spendio Marketing Theme
Theme URI: https://spendio.tech
Author: Spendio
Description: Apple-inspired multilingual marketing theme for Spendio.
Version: 1.2.0
Text Domain: spendio
*/

:root {
  --bg: #f5f5f7;
  --bg-soft: #fafafa;
  --surface: rgba(255, 255, 255, 0.88);
  --card: #ffffff;
  --text: #111111;
  --muted: #5f6168;
  --line: rgba(17, 17, 17, 0.08);
  --brand: #0068d8;
  --brand-strong: #0052aa;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 48px -36px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 16px 36px -24px rgba(14, 18, 26, 0.35);
  --font-body: "Manrope", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Poppins", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(1200px 560px at 100% -8%, rgba(0, 104, 216, 0.12), transparent 62%), var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

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

.sp-container {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.top-cta {
  background: #101113;
  color: #f6f6f8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-cta-inner {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
}

.top-cta-text {
  margin: 0;
  font-size: 0.86rem;
  color: #d5d7de;
}

.store-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #f5f5f7;
  color: #111;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.56rem 0.92rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-btn.secondary {
  background: transparent;
  color: #f5f5f7;
}

.store-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  background: rgba(245, 245, 247, 0.82);
}

.site-header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  font-size: 0.9rem;
  color: #1b1d20;
  opacity: 0.86;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav .menu-item-has-children {
  position: relative;
}

.main-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  min-width: 210px;
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  z-index: 20;
}

.main-nav .sub-menu a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
}

.main-nav .sub-menu a:hover {
  background: #f3f6fb;
}

.main-nav .menu-item-has-children:hover .sub-menu,
.main-nav .menu-item-has-children:focus-within .sub-menu {
  display: flex;
}

.lang-switch {
  border-radius: 999px;
  border: 1px solid #d4d6dc;
  padding: 0.45rem 0.7rem;
  background: #fff;
  font-size: 0.84rem;
  color: #1d1f23;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  padding: 0.2rem 0.35rem;
}

.site-main {
  overflow: clip;
}

.hero {
  position: relative;
  padding: 3.4rem 0 2.4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -260px auto auto 50%;
  transform: translateX(-50%);
  width: 860px;
  height: 540px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 35%, rgba(0, 104, 216, 0.2) 0, rgba(0, 104, 216, 0.08) 40%, rgba(245, 245, 247, 0) 72%);
  pointer-events: none;
}

.hero-intro {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: #6c7078;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.65rem 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 1rem auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
  padding: 0.72rem 1.08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-outline {
  color: #111;
  background: #fff;
  border: 1px solid #ced2da;
}

.btn-ghost {
  color: #1f4d92;
  background: rgba(0, 104, 216, 0.08);
  border: 1px solid rgba(0, 104, 216, 0.18);
}

.hero-devices {
  position: relative;
  margin: 2.2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0.9rem;
  max-width: 940px;
}

.hero-phone {
  margin: 0;
  padding: 8px;
  border-radius: 30px;
  background: #07080b;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-phone img {
  width: 100%;
  aspect-ratio: 460 / 996;
  object-fit: cover;
  border-radius: 24px;
}

.phone-main {
  transform: translateY(0);
}

.phone-alt {
  transform: translateY(22px);
}

.phone-third {
  transform: translateY(8px);
}

.section {
  padding: 2.9rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.78) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0.72rem 0 0;
  color: var(--muted);
  max-width: 780px;
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
}

.feature-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.card-index {
  display: inline-flex;
  min-width: 32px;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 104, 216, 0.1);
  color: #134b95;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.22rem 0.5rem;
}

.feature-card h3 {
  margin: 0.55rem 0 0;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.workflow {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.workflow-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.workflow-step {
  margin: 0;
  color: #80838d;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.workflow-item h3 {
  margin: 0.48rem 0 0;
  font-size: 1.04rem;
}

.workflow-item p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.mockup-strip {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.mockup-tile,
.gallery figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.mockup-tile img,
.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.cta-band {
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  background: linear-gradient(120deg, #0f1115 0%, #1c2028 55%, #0d1016 100%);
  color: #f4f6fa;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.cta-band h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0.5rem 0 0;
  color: #afb5c0;
  max-width: 660px;
}

.cta-buttons .store-btn {
  border-color: rgba(255, 255, 255, 0.24);
}

.page-hero {
  padding: 2.6rem 0 0.9rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

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

.page-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.legal-dropdown {
  margin-top: 1rem;
}

.legal-dropdown label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.legal-dropdown select {
  width: 100%;
  max-width: 360px;
  border: 1px solid #d5d9e2;
  border-radius: 12px;
  background: #fff;
  padding: 0.62rem 0.75rem;
  font: inherit;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-box {
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.9rem;
}

.contact-box p {
  margin: 0.35rem 0 0;
  color: #30343b;
}

.contact-form label {
  display: block;
  margin-bottom: 0.24rem;
  font-size: 0.84rem;
  color: #4b4f57;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid #d7dce6;
  background: #fff;
  padding: 0.68rem 0.78rem;
  font: inherit;
  margin-bottom: 0.68rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.support-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.support-contact h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.support-email {
  margin: 0.8rem 0 0;
  font-weight: 700;
  color: #183f78;
}

.support-contact-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.site-footer {
  padding: 1.7rem 0 2rem;
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
  color: #6c7078;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero {
    padding: 2.9rem 0 2rem;
  }

  .hero-devices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
  }

  .phone-third {
    display: none;
  }

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

  .mockup-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .sp-container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .top-cta-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0;
  }

  .site-header-inner {
    min-height: 60px;
  }

  .mobile-toggle {
    display: inline-block;
  }

  .nav-wrap {
    position: fixed;
    left: 0.6rem;
    right: 0.6rem;
    top: 112px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-wrap.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .main-nav .sub-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border: 0;
    padding: 0.35rem 0 0 0.6rem;
    min-width: 0;
    background: transparent;
  }

  .hero h1 {
    font-size: clamp(1.74rem, 9vw, 2.3rem);
  }

  .hero-devices {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-top: 1.7rem;
  }

  .phone-alt {
    display: none;
  }

  .feature-grid,
  .workflow,
  .mockup-strip,
  .support-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .mockup-tile img,
  .gallery img {
    height: 280px;
  }

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

  .page-card,
  .feature-card,
  .workflow-item {
    padding: 0.95rem;
  }
}
