/* style.css */
:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, .70);
  --line: rgba(15, 23, 42, .12);
  --card: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --accent: #2563eb;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .92; }

.container{
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.2px;
}

.brand-logo{
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.brand-name{ font-weight: 900; }

.nav{
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}

.nav .pill{
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--text);
}

/* Hero */
.hero{
  padding: 72px 0 56px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: start;
}

.eyebrow{
  margin: 0 0 15px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
}

h1{
  margin: 0 0 12px;
  font-size: clamp(65px, 4.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.support{
  margin: 0 0 10px;
  color: var(--muted);
  max-width: 66ch;
}

.hero-copy{
  padding-left: 48px;
  max-width: 560px;
}

.hero-sub{
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.55;
}

.accent{
  color: #1f6feb;
  font-weight: 600;
}

.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 800;
  min-width: 160px;
  background: white;
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
}

.btn.primary{
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.btn.secondary{
  color: var(--text);
}

.break { display: block; }

/* hero media */
.hero-media{
  display: grid;
  justify-items: center;
  gap: 10px;
}

.phone-img{
  width: min(360px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(15,23,42,.18));
}

.hero-caption{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  max-width: 44ch;
}

/* Sections */
.section{ padding: 42px 0; }

.section.alt{
  background: #fbfcfe;
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.section h2{
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -.3px;
}

.lead{
  margin: 0;
  color: var(--muted);
  max-width: 76ch;
}

.center-head{ text-align: center; }
.center-lead{ margin: 0 auto; }

/* BarderWorks-style 3-col */
.tri{
  margin-top: 26px;
  border-top: 1px solid rgba(15,23,42,.10);
  border-bottom: 1px solid rgba(15,23,42,.10);
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: stretch;
}

.tri-col{
  padding: 22px 20px;
  text-align: center;
}

.tri-divider{
  background: rgba(15,23,42,.10);
  width: 1px;
}

.tri-icon{
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  font-size: 18px;
}

.tri h3{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -.1px;
}

.tri p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}



/* How / Flow */
.steps{
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.steps li{ margin: 0 0 12px; }

.step-title{
  font-weight: 900;
  margin-bottom: 2px;
  font-size: 18px;
}

.step-text{
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}


/* ✅ FIX: explicit 2x2 layout */
.flow-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "who illustration"
    "video how";
  column-gap: 24px;
  row-gap: 40px;
  align-items: start;
  
}

.flow-how{
  grid-area: how;
  padding-left: 0px;
  max-width: 460px;
}

.flow-who{
  grid-area: who;
  padding-left: 0px;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.flow-who .bullets{
  list-style-position: inside;
  padding-left: 0;
}

.flow-how h2,
.flow-who h2{
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.flow-who .lead{
  font-size: 16px;
}

.flow-who .bullets{
  font-size: 15px;
}

.who-illustration{
  grid-area: illustration;
  justify-self: center;
  overflow: hidden;
}

.flow-video{
  grid-area: video;
  max-width: 460px;
  margin: 0;
}

.video-card{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-video{
  width: 100%;
  height: 360px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(15,23,42,.10);
}

.caption{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.who-illustration img{
  width: 100%;
  max-width: 460px;
  transform: translateX(-8%) translateY(-2%);
  height: auto;
  display: block;
  opacity: 0.98;
}

/* Pricing cards */

.pricing-title{
  text-align:center;
  margin-bottom:32px;
}

.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  margin-top:28px;
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  padding:24px;
}

.card h3{
  margin-top:0;
}

.bullets{
  margin:14px 0;
  padding-left:18px;
  color:var(--muted);
}

.bullets li{
  margin:8px 0;
}

/* Price styling */

.price{
  font-size:22px;
  font-weight:600;
  margin-top:16px;
}

.price.yearly{
  font-size:16px;
  font-weight:500;
  margin-top:4px;
  color:var(--muted);
}

/* Pro card highlight */

.pro-card{
  position:relative;
  background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
  transform:translateY(-6px);
  box-shadow:0 6px 20px rgba(0,0,0,.05);
}

.pro-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:var(--radius);
  pointer-events:none;
  border:2px solid rgba(37,99,235,.18);
}

.price-block{
  margin-top:18px;
}

.price-main{
  font-size:26px;
  font-weight:600;
  color:#111;
}

.price-main span{
  font-size:14px;
  font-weight:400;
  color:var(--muted);
  margin-left:4px;
}

.price-year{
  font-size:14px;
  color:var(--muted);
  margin-top:4px;
}

/* Brand band */
.brand-band{ padding-top: 28px; }

.band{
  border-top: 1px solid rgba(15,23,42,.10);
  border-bottom: 1px solid rgba(15,23,42,.10);
  padding: 18px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.band-logo{
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.band-line{
  font-weight: 900;
  letter-spacing: -.3px;
  font-size: 18px;
}

.band-sub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.dot{ opacity: .45; margin: 0 6px; }

/* Footer */
.footer{
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.footer-links{
  display: flex;
  gap: 14px;
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }

  .tri{
    grid-template-columns: 1fr;
    border: none;
  }
  .tri-divider{ display: none; }
  .tri-col{
    text-align: left;
    border-top: 1px solid rgba(15,23,42,.10);
  }
  .tri-col:first-child{ border-top: none; }
  .tri-icon{ margin: 0 0 10px; }

  /* Stack the flow section nicely on mobile */
  .flow-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "how"
      "video"
      "illustration"
      "who";
    row-gap: 24px;
  }

  .flow-video{ justify-self: stretch; max-width: 100%; }
  .flow-who{ max-width: 100%; }

  .who-illustration img{
    width: 110%;
    transform: translateX(-5%) translateY(0%);
  }

  .band{
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .btn{ min-width: 0; width: auto; }
}



/* WHO: make it feel as “designed” as How it works */
.flow-who{
  grid-area: who;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.flow-who .lead{
  font-size: 16px;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 auto 14px;   /* centers the paragraph block */
}

/* Centered bullets that don’t look janky */
.flow-who .bullets{
  list-style: none;       /* remove default bullets */
  padding: 0;
  margin: 0 auto 18px;
  display: grid;
  gap: 10px;
  justify-items: center;  /* centers each line */
}

.flow-who .bullets li{
  position: relative;
  padding-left: 18px;     /* space for custom dot */
  max-width: 44ch;
  text-align: left;       /* keeps lines readable */
}

.flow-who .bullets li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(15,23,42,.45);
  font-weight: 900;
}

/* Center the button row */
.flow-who .cta-row,
.flow-who .small-cta{
  justify-content: center;
}

.flow-who .cta-row{ margin-top: 10px; }


/* iPhone frame wrapper */
.iphone{
  width: min(220px, 100%);
  margin: 0 auto;
  padding: 5px;
  border-radius: 34px;
  background: #0b1220;
  box-shadow: 0 18px 50px rgba(15,23,42,.18);
  border: 1px solid rgba(255,255,255,.08);
}

.iphone-screen{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5; /* tall phone feel */
}

/* notch */
.iphone-screen::before{
  content:"";
  position:absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 16px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  z-index: 2;
}

/* video inside the phone */
.iphone .demo-video{
  width: 100%;
  height: 100%;
  object-fit: contain;  /* fills phone screen nicely */
  display: block;
  border: 0;
  border-radius: 0;
  background: #000;
}