/* style.css */
:root {
      --cream: #F6EFE2;
      --cream-deep: #EEE3CE;
      --forest: #3E5744;
      --forest-dark: #2B3E2E;
      --brown: #4A3A2E;
      --coral: #E2957F;
      --coral-soft: #F2C9BB;
      --sage: #C3D2B7;
      --ink: #2A2620;
      --paper: #FBF7EE;
      --muted: #867C6B;
}

* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
}

html {
      scroll-behavior: smooth;
}

body {
      background: var(--cream);
      color: var(--ink);
      font-family: 'Inter', sans-serif;
      overflow-x: hidden;
      position: relative;
}

/* ---------------- ACCESSIBILITY ---------------- */
.skip-link {
      position: absolute;
      top: -48px;
      left: 12px;
      z-index: 100;
      background: var(--forest);
      color: var(--paper);
      padding: 10px 18px;
      border-radius: 8px;
      text-decoration: none;
      font-size: 13.5px;
      font-weight: 600;
      transition: top .2s ease;
}

.skip-link:focus {
      top: 12px;
}

a:focus-visible,
button:focus-visible {
      outline: 2px solid var(--forest);
      outline-offset: 3px;
      border-radius: 6px;
}

.bg-blob {
      position: fixed;
      border-radius: 50%;
      filter: blur(40px);
      pointer-events: none;
      z-index: 0;
      opacity: 0.5;
}

.blob-a {
      width: 520px;
      height: 520px;
      top: -160px;
      left: -160px;
      background: radial-gradient(circle, rgba(195, 210, 183, 0.55), transparent 70%);
}

.blob-b {
      width: 600px;
      height: 600px;
      bottom: -220px;
      right: -200px;
      background: radial-gradient(circle, rgba(226, 149, 127, 0.22), transparent 70%);
}

.wrap {
      position: relative;
      z-index: 1;
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 24px;
}

/* ---------------- NAV ---------------- */
nav {
      position: sticky;
      top: 0;
      z-index: 15000;
      background: rgba(246, 239, 226, 0.85);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid transparent;
      transition: border-color .25s ease, box-shadow .25s ease;
}

nav.scrolled {
      border-color: rgba(74, 58, 46, 0.1);
      box-shadow: 0 6px 18px rgba(43, 38, 29, 0.06);
}

.nav-inner {
      max-width: 1120px;
      margin: 0 auto;
      padding: 14px 24px;
}

.nav-brand {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
}

.nav-links {
      display: flex;
      gap: 30px;
      list-style: none;
}

.nav-links a {
      position: relative;
      color: var(--ink);
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      opacity: .75;
      transition: opacity .2s;
}

.nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 0%;
      height: 1.5px;
      background: var(--forest);
      transition: width .25s ease;
}

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

.nav-links a:hover::after {
      width: 100%;
}

.nav-cta {
      background: var(--forest);
      color: var(--paper);
      font-size: 13.5px;
      font-weight: 600;
      padding: 9px 18px;
      border-radius: 10px;
      text-decoration: none;
      transition: transform .2s ease, box-shadow .2s ease;
}

.nav-cta:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(43, 62, 46, .22);
}

@media (max-width: 720px) {
      .nav-links {
            display: none;
      }
}

/* ---------------- HERO ---------------- */
.hero-section {
      position: relative;
      padding: 70px 0 20px;
      text-align: center;
}

/* Page-load entrance sequence: each hero element rises in with its own delay */
.hero-in {
      opacity: 0;
      transform: translateY(22px);
      animation: heroRise .8s cubic-bezier(.2, .7, .2, 1) forwards;
      animation-delay: var(--d, 0s);
}

@keyframes heroRise {
      to {
            opacity: 1;
            transform: translateY(0);
      }
}

.ring-wrap {
      position: relative;
      width: 96px;
      height: 96px;
      margin: 0 auto 18px;
      display: flex;
      align-items: center;
      justify-content: center;
}

.ring-wrap::before {
      content: "";
      position: absolute;
      inset: -10px;
      border-radius: 50%;
      border: 1.5px dashed rgba(62, 87, 68, 0.32);
      animation: spin 40s linear infinite;
}

@keyframes spin {
      from {
            transform: rotate(0deg);
      }

      to {
            transform: rotate(360deg);
      }
}

.logo-mark {
      width: 68px;
      height: 68px;
      border-radius: 50%;
      background: var(--forest);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 22px rgba(43, 62, 46, .28);
}

.logo-mark img {
      width: 38px;
      height: 38px;
}

.eyebrow {
      font-size: 13px;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--forest);
      font-weight: 600;
      margin-bottom: 16px;
}

h1 {
      font-family: 'Fraunces', serif;
      font-weight: 600;
      font-size: clamp(32px, 5.4vw, 52px);
      line-height: 1.14;
      letter-spacing: -.5px;
      max-width: 680px;
      margin: 0 auto;
}

h1 em {
      font-style: italic;
      color: var(--forest);
      font-weight: 500;
}

.sub {
      margin: 20px auto 0;
      font-size: 17px;
      line-height: 1.65;
      color: #5c5546;
      max-width: 480px;
}

.stores {
      display: flex;
      gap: 14px;
      justify-content: center;
      margin-top: 32px;
      flex-wrap: wrap;
}

.store-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--ink);
      color: var(--paper);
      padding: 11px 22px;
      border-radius: 12px;
      text-decoration: none;
      transition: transform .18s ease, box-shadow .18s ease;
      box-shadow: 0 6px 16px rgba(42, 38, 32, .18);
}

.store-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 22px rgba(42, 38, 32, .24);
}

.store-btn:active {
      transform: translateY(0);
}

.store-btn svg {
      width: 23px;
      height: 23px;
      flex-shrink: 0;
}

.store-text {
      text-align: left;
      line-height: 1.15;
}

.store-text .small {
      font-size: 10px;
      letter-spacing: .4px;
      opacity: .85;
      display: block;
}

.store-text .big {
      font-size: 16px;
      font-weight: 600;
}

/* ---------------- HERO SHOWCASE ---------------- */
.showcase {
      position: relative;
      display: flex;
      justify-content: center;
      margin-top: 56px;
      padding: 0 0 30px;
}

.phone-stage {
      position: relative;
      width: 250px;
      transform-style: preserve-3d;
      perspective: 900px;
}

.phone {
      position: relative;
      width: 250px;
      border-radius: 34px;
      background: var(--brown);
      padding: 10px;
      box-shadow: 0 30px 60px -20px rgba(43, 38, 29, .35);
      transition: transform .25s ease;
      will-change: transform;
}

.phone img {
      width: 100%;
      display: block;
      border-radius: 26px;
}

/* Floating accent pills around the hero phone */
.float-pill {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      z-index: -1;
      animation: floaty 6s ease-in-out infinite;
}

.pill-1 {
      width: 64px;
      height: 64px;
      top: -18px;
      right: -22px;
      background: radial-gradient(circle, var(--coral-soft), transparent 72%);
      animation-delay: 0s;
}

.pill-2 {
      width: 84px;
      height: 84px;
      bottom: 10px;
      left: -30px;
      background: radial-gradient(circle, var(--sage), transparent 72%);
      animation-delay: 1.4s;
}

@keyframes floaty {

      0%,
      100% {
            transform: translateY(0) translateX(0);
      }

      50% {
            transform: translateY(-14px) translateX(6px);
      }
}

/* ---------------- REVEAL ANIMATIONS ---------------- */
.reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

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

.reveal-stagger>* {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity .6s ease, transform .6s ease;
}

.reveal-stagger.in>* {
      opacity: 1;
      transform: translateY(0);
}

.reveal-stagger.in>*:nth-child(1) {
      transition-delay: .02s;
}

.reveal-stagger.in>*:nth-child(2) {
      transition-delay: .10s;
}

.reveal-stagger.in>*:nth-child(3) {
      transition-delay: .18s;
}

.reveal-stagger.in>*:nth-child(4) {
      transition-delay: .26s;
}

.reveal-stagger.in>*:nth-child(5) {
      transition-delay: .34s;
}

.reveal-stagger.in>*:nth-child(6) {
      transition-delay: .42s;
}

/* ---------------- SECTIONS & FEATURES ---------------- */
.section {
      padding: 100px 0;
}

.section-head {
      text-align: center;
      max-width: 560px;
      margin: 0 auto 52px;
}

.section-head h2 {
      font-family: 'Fraunces', serif;
      font-weight: 600;
      font-size: clamp(26px, 3.6vw, 36px);
}

.section-head p {
      margin-top: 14px;
      font-size: 15.5px;
      color: var(--muted);
      line-height: 1.6;
}

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

.feature {
      background: var(--paper);
      border-radius: 18px;
      padding: 28px 22px;
      box-shadow: 0 4px 14px rgba(43, 38, 29, .06);
      transition: transform .25s ease, box-shadow .25s ease;
}

.feature:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 28px rgba(43, 38, 29, .1);
}

.feature .ico {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: var(--sage);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
      transition: transform .25s ease;
}

.feature:hover .ico {
      transform: scale(1.08) rotate(-4deg);
}

.feature .ico svg {
      width: 22px;
      height: 22px;
      color: var(--forest-dark);
}

.feature h3 {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 6px;
}

.feature p {
      font-size: 13.5px;
      color: var(--muted);
      line-height: 1.55;
}

@media (max-width: 820px) {
      .features {
            grid-template-columns: 1fr 1fr;
      }
}

@media (max-width: 560px) {
      .features {
            grid-template-columns: 1fr;
      }
}

/* ---------------- FIXED RESPONSIVE SCREENS GALLERY ---------------- */
.screens-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      /* Enforces 4 items in a perfect single row natively */
      gap: 24px;
      align-items: start;
      justify-content: center;
      margin-top: 20px;
}

.screen-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
}

.screen-item .phone-sm {
      width: 100%;
      max-width: 210px;
      /* Controls precise phone layout structure matching design */
      border-radius: 26px;
      background: var(--brown);
      padding: 8px;
      box-shadow: 0 22px 44px -16px rgba(43, 38, 29, .32);
      transition: transform .3s ease, box-shadow .3s ease;
}

.screen-item:hover .phone-sm {
      transform: translateY(-6px);
      box-shadow: 0 30px 54px -16px rgba(43, 38, 29, .4);
}

.screen-item .phone-sm img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 19px;
}

.screen-item .cap {
      margin-top: 16px;
      max-width: 210px;
}

.screen-item .cap b {
      display: block;
      font-size: 14.5px;
      font-weight: 600;
      margin-bottom: 4px;
      color: var(--ink);
}

.screen-item .cap span {
      display: block;
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.4;
}

/* Responsive Fluid Layout Adjustments for the Screens Row */
@media (max-width: 900px) {
      .screens-row {
            grid-template-columns: repeat(2, 1fr);
            /* Fluid dynamic transition to 2 columns on tablets */
            gap: 32px;
      }
}

@media (max-width: 480px) {
      .screens-row {
            grid-template-columns: 1fr;
            /* 1 column grid flow on absolute compact viewports */
      }
}

/* ---------------- SECURITY ---------------- */
.security {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 56px;
      align-items: center;
}

.security h2 {
      font-family: 'Fraunces', serif;
      font-weight: 600;
      font-size: clamp(26px, 3.4vw, 34px);
      margin-bottom: 16px;
}

.security p.lead {
      font-size: 15.5px;
      color: var(--muted);
      line-height: 1.65;
      margin-bottom: 26px;
}

.check-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 16px;
}

.check-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
}

.check-list li svg {
      width: 20px;
      height: 20px;
      color: var(--forest);
      flex-shrink: 0;
}

.check-list li b {
      display: block;
      font-size: 14.5px;
}

.check-list li span {
      font-size: 13px;
      color: var(--muted);
}

.security-visual {
      display: flex;
      justify-content: center;
}

.security-visual .phone {
      width: 220px;
}

@media (max-width: 820px) {
      .security {
            grid-template-columns: 1fr;
      }

      .security-visual {
            order: -1;
      }
}

/* ---------------- CTA BAND ---------------- */
.cta-band {
      background: var(--forest);
      border-radius: 28px;
      padding: 64px 40px;
      text-align: center;
      color: var(--paper);
}

.cta-band h2 {
      font-family: 'Fraunces', serif;
      font-weight: 600;
      font-size: clamp(26px, 3.6vw, 36px);
      margin-bottom: 14px;
}

.cta-band p {
      font-size: 15.5px;
      opacity: .85;
      max-width: 420px;
      margin: 0 auto 30px;
}

.cta-band .store-btn {
      background: var(--paper);
      color: var(--ink);
}

/* ---------------- FOOTER ---------------- */
footer {
      padding: 64px 0 40px;
}

.foot-grid {
      display: grid;
      grid-template-columns: 1.4fr repeat(3, .8fr);
      gap: 32px;
      padding-bottom: 40px;
      border-bottom: 1px solid rgba(74, 58, 46, .12);
}

.foot-brand p {
      font-size: 13.5px;
      color: var(--muted);
      line-height: 1.6;
      max-width: 260px;
      margin-top: 10px;
}

.foot-col h4 {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 14px;
}

.foot-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
}

.foot-col a {
      font-size: 13.5px;
      color: var(--muted);
      text-decoration: none;
      transition: color .2s ease;
}

.foot-col a:hover {
      color: var(--ink);
}

.foot-bottom {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 26px;
      font-size: 12.5px;
      color: var(--muted);
      flex-wrap: wrap;
      gap: 10px;
}

@media (max-width: 720px) {
      .foot-grid {
            grid-template-columns: 1fr 1fr;
      }
}

@media (max-width: 480px) {
      .foot-grid {
            grid-template-columns: 1fr;
      }
}

/* ---------------- REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {

      html {
            scroll-behavior: auto;
      }

      .hero-in {
            animation: none;
            opacity: 1;
            transform: none;
      }

      .ring-wrap::before,
      .float-pill {
            animation: none;
      }

      .reveal,
      .reveal-stagger>* {
            transition: none;
            opacity: 1;
            transform: none;
      }

      .phone,
      .feature,
      .feature .ico,
      .screen-item .phone-sm,
      .store-btn,
      .nav-cta {
            transition: none;
      }
}
