.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--accent);
    color: var(--primary);
}

.hero-container {
    margin: 0 auto;
    padding: 1rem clamp(1.25rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
}

.hero-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vh, 5rem) 0 2rem;
    border-radius: 10px;
}

.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.mockup-container {
    position: relative;
    width: 100%;
}

.mockup-main {
    position: relative;
    z-index: 3;
    width: 280px;
    height: 560px;
    background: var(--ink-dark);
    border-radius: 40px;
    border: 5px solid var(--device-frame-border);
    box-shadow: 0 20px 60px var(--shadow-8);
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(50deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.mockup-logo-circle {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-7);
}

.mockup-logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    font-weight: var(--weight-regular);
}

.mockup-tagline {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 1rem;
}

.mockup-overlay-left, .mockup-overlay-right {
    position: absolute;
    width: 240px;
    height: 480px;
    background: var(--ink-dark);
    border-radius: 35px;
    border: 5px solid var(--device-frame-border);
    box-shadow: 0 15px 40px var(--shadow-7);
    overflow: hidden;
}

.mockup-overlay-left {
    top: 40px;
    left: -80px;
    z-index: 1;
    transform: rotate(-8deg);
    opacity: 0.7;
}

.mockup-overlay-right {
    top: 80px;
    right: -80px;
    z-index: 2;
    transform: rotate(8deg);
    opacity: 0.8;
}

.mockup-overlay-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ink-dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
    padding: 1rem;
}

.mockup-placeholder {
    color: var(--white-a50);
    font-size: 0.75rem;
    text-align: center;
}

.hero-text-block {
    margin-bottom: 2rem;
}

.hero-text-block p {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    color: var(--hero-text-color);
    line-height: 1.7;
    font-size: 1.1rem;
}

.hero-text-block p:last-child {
    margin-bottom: 0;
}

.hero-text-block strong {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    color: var(--hero-text-color);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--hero-title);
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--hero-text-color);
    margin-bottom: 1.5rem;
    font-weight: var(--weight-light);
    line-height: 1.4;
}

.hero-cta {
    display: inline-block;
    background: var(--primary);
    color: var(--accent);
    padding: 1rem 3rem;
    border-radius: 45px 45px 45px 45px;
    text-decoration: none;
    font-family: var(--font-button-captions);
    font-weight: var(--weight-button-captions);
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    width: fit-content;
}

.hero-cta:hover {
    background: transparent;
    color: var(--primary);
}

.features-content-box {
    background: var(--white-a10);
    padding: 3rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--white-a10);
    padding: 2rem;
    border-radius: 10px;
    opacity: 0.8;
}

.features-content-box > * {
    position: relative;
    z-index: 2;
}

.features-content-box h2 {
    font-size: 2.5rem;
    color:var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: var(--weight-light);
    line-height: 1.2;
}

.features-content-box p {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: var(--hero-title);
    padding: 1rem 2.5rem;
    border-radius: 45px 45px 45px 45px;
    text-decoration: none;
    font-family: var(--font-button-captions);
    font-weight: var(--weight-button-captions);
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    width: fit-content;
}

.cta-button:hover {
    background: transparent;
    color: var(--accent);
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 10px var(--shadow-1);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    background-color: var(--bg-dark);
    border-color: var(--primary);
}

.feature-icon {
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: var(--weight-regular);
    padding-left: 10px;
}

.feature-card p {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.secondary-section {
    padding: 8rem 3rem;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.secondary-section-theme-bg {
    padding: clamp(3.5rem, 8vw, 8rem) 0;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: var(--primary);
    color: var(--payment-type-name-text);
}

.section-warm {
    background: var(--section-warm);
}

.story-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 4rem);
}

.story-visual {
    min-height: 1px;
}

.story-visual img, .story-visual svg {
    display: block;
    width: 100%;
    height: auto;
}

.story-text p {
    text-align: left;
}

.story-text .story-emphasis {
    text-align: left;
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

.story-text .story-emphasis br {
    display: none;
}

@media (max-width: 940px) {
  .story-container {
      grid-template-columns: 1fr;
      gap: 2rem;
  }
  
  .story-visual {
      order: 2;
  }
  
  .story-visual:empty {
      display: none;
  }
}

.features-grid-section {
    padding: 8rem 3rem;
    background-repeat: no-repeat;
    background-size: cover;
}

.features-grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.secondary-section-theme-bg h2 {
    font-size: 2.5rem;
    color: var(--payment-type-name-text);
    margin-bottom: 1rem;
    font-weight: var(--weight-light);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: var(--weight-light);
}

.section-header-theme-bg h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--payment-type-name-text);
    margin-bottom: 1rem;
    font-weight: var(--weight-light);
}

.section-header-theme-bg p {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: 1.2rem;
    color: var(--payment-type-name-text);
}

.section-header p {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-feature {
    background: var(--white);
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 10px var(--shadow-1);
    padding: 2.5rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.grid-feature:hover {
    background: var(--white);
    box-shadow: 0 10px 28px var(--primary-glow-1);
    border-color: var(--primary);
}

.grid-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.grid-feature h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: var(--weight-regular);
}

.grid-feature p {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 940px) {
  .hero-container {
      grid-template-columns: 1fr;
      gap: 3rem;
  }
}

@media (max-width: 1024px) {
  .hero-title {
      font-size: 2.5rem;
  }
  
  .hero-subtitle {
      font-size: 1.3rem;
  }
  
  .hero-mockup {
      min-height: 400px;
  }
  
  .mockup-overlay-left, .mockup-overlay-right {
      display: none;
  }
  
  .features-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
      font-size: 2rem;
  }
  
  .hero-subtitle {
      font-size: 1.15rem;
  }
  
  .features-grid {
      grid-template-columns: 1fr;
  }
  
  .hero-container, .features-grid-container {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
  }
}

.grid-feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    stroke: var(--primary);
}

.grid-feature-icon svg {
    stroke: var(--feature-icon-color);
}

.feature-icon svg, .grid-feature-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.read-more {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    text-decoration: none;
    color: var(--hero-text-color);
}

.read-more:visited, .read-more:active {
    color: var(--hero-text-color);
}

.focus-circle {
    width: 800px;
    height: 700px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    display: none;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 6% 4%;
}

.hero-blobs {
    position: absolute;
    inset: -2% -14%;
    width: 128%;
    height: 104%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.blob {
    fill: var(--blob-green);
}

.blob-small {
    fill: var(--blob-green-deep);
}

.blob-low {
    fill: var(--white);
    fill-opacity: 0.55;
}

.hero-blobs {
    transform-origin: 50% 50%;
    will-change: transform;
    animation: blobDrift 14s ease-in-out infinite alternate;
}

.hero-carousel.is-offscreen .hero-blobs {
    animation-play-state: paused;
}

@keyframes blobDrift {
  from { transform: rotate(0deg) scale(1); }
            to   { transform: rotate(3deg) scale(1.03); }
}

.hero-slides {
    position: relative;
    z-index: 1;
    display: grid;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s linear 0.8s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-dots {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.hero-dots:empty {
    display: none;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    opacity: 0.3;
    cursor: pointer;
    transition: width 0.3s, opacity 0.3s;
}

.hero-dot[aria-selected="true"] {
    width: 26px;
    opacity: 1;
}

.hero-dot:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-blobs {
      animation: none;
  }
  
  .hero-slide, .hero-slide.is-active {
      transition: none;
      transform: none;
  }
}

.device-stack {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.device img {
    display: block;
    width: 100%;
    height: auto;
}

.device-ipad img {
    aspect-ratio: 900 / 1199;
}

.device-iphone img, .download-phone img {
    aspect-ratio: 560 / 1111;
}

.device-stack--plain .device-ipad img {
    filter: drop-shadow(0 22px 26px var(--shadow-5));
}

.device-stack--plain .device-iphone img {
    filter: drop-shadow(0 18px 22px var(--shadow-6));
}

.device-ipad {
    display: block;
    position: relative;
    z-index: 1;
    width: 70%;
    margin-left: 6%;
}

.device-iphone {
    position: absolute;
    z-index: 2;
    width: 36%;
    right: 2%;
    bottom: -2%;
}

@media (max-width: 940px) {
  .hero-carousel {
      max-width: 420px;
  }
}

@media (max-width: 768px) {
  .hero-content {
      padding: 2rem 0 1rem;
  }
  
  .hero-cta {
      padding: 0.9rem 2rem;
  }
  
  .hero-mockup {
      min-height: 0;
      padding-bottom: 2rem;
  }
}

.download-section {
    padding: 80px 20px;
    background: var(--white);
    position: relative;
}

.download-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.download-text {
    flex: 1;
    min-width: 300px;
}

.download-title {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
}

.download-subtitle {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    color: var(--text-gray-700);
    margin-bottom: 30px;
    max-width: 500px;
}

.download-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.download-buttons .hero-cta {
    padding: 14px 28px;
    font-size: 16px;
    text-transform: uppercase;
}

.download-mockup {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.download-phones {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 420 / 520;
}

.download-phone {
    position: absolute;
    width: 52%;
}

.download-phone img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 24px var(--shadow-5));
}

.download-phone--back {
    left: 4%;
    top: 0;
}

.download-phone--front {
    right: 4%;
    top: 12%;
}

.btn-appstore {
    width: 120px;
    height: auto;
}

.store-link.coming-soon {
    position: relative;
    pointer-events: none;
    opacity: 0.45;
}

.store-link.coming-soon::after {
    content: 'Coming soon';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.4rem;
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-muted);
}

.btn-playstore {
    width: 135px;
    height: auto;
}

.short-paragraph {
    width: 50%;
    margin: 0 auto 5rem auto;
}

.short-paragraph p {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    text-align: left;
}

.story-emphasis {
    margin: 0 auto;
    text-align: center;
}

.story-emphasis p {
    font-style: italic;
}

@media (max-width: 768px) {
  .features-grid-section, .secondary-section {
      padding: 3.5rem 1rem;
  }
  
  .features-grid-container {
      padding-left: 0;
      padding-right: 0;
  }
  
  .section-header {
      margin-bottom: 2rem;
  }
  
  .section-header h2 {
      font-size: 2rem;
  }
  
  .short-paragraph {
      width: 100%;
      margin-bottom: 2rem;
  }
  
  .features-grid {
      gap: 1rem;
  }
  
  .feature-card {
      padding: 1.25rem;
  }
  
  .grid-feature {
      padding: 1.5rem 1.25rem;
  }
  
  .grid-feature-icon {
      width: 56px;
      height: 56px;
      margin-bottom: 1rem;
  }
  
  .grid-feature-icon svg {
      width: 26px;
      height: 26px;
  }
}
