/* ==========================
   Fonts
   ========================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Oswald:wght@400;500;600&display=swap');

/* ==========================
   Tokens
   ========================== */
:root {
  --brand:        #1D4ED8;
  --brand-dark:   #163B73;
  --brand-light:  #E8EEF7;
  --brand-mid:    #B7C8E6;

  --text-primary: #111827;
  --text-muted:   #4B5563;
  --text-faint:   #9CA3AF;

  --bg-page:      #FFFFFF;
  --bg-card:      #FFFFFF;

  --border:       #D1D5DB;
  --border-soft:  #E5E7EB;

  --success:      #15803D;

  --radius-card:  10px;
  --radius-btn:   6px;
  --radius-badge: 4px;

  --shadow-card:  0 2px 6px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 22px rgba(0,0,0,.12);
  --shadow-feat:  0 6px 24px rgba(29,78,216,.16);

  --font-head:    'Oswald', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --transition:   0.22s cubic-bezier(.4,0,.2,1);
}

/* ==========================
   Global Styles
   ========================== */
body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.demo-wrap {
  width: 100%;
  min-height: 100vh;
  padding: 4rem 1rem 3rem;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================
   Header
   ========================== */
.demo-header {
  max-width: 560px;
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.demo-header .eyebrow {
  display: inline-block;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;

  color: var(--brand);
  background: var(--brand-light);

  padding: 6px 14px;
  border-radius: 999px;

  margin-bottom: 1rem;
}

.demo-header h1 {
  margin: 0 0 .8rem;

  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;

  color: var(--text-primary);
}

.demo-header h1 em {
  font-style: normal;
  color: var(--brand);
}

.demo-header p {
  margin: 0;

  font-size: 1rem;
  line-height: 1.7;

  color: var(--text-muted);
}

/* ==========================
   Pricing Layout
   ========================== */
.pricing-plans {
  width: 100%;
}

.pricing-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;

  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

/* ==========================
   Pricing Cards
   ========================== */
.pricing-plan {
  position: relative;

  display: flex;
  flex-direction: column;

  padding: 2rem 1.5rem 1.5rem;

  background: var(--bg-card);

  border: 1px solid var(--border);
  border-radius: var(--radius-card);

  box-shadow: var(--shadow-card);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.pricing-plan:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* ==========================
   Featured Card
   ========================== */
.featured-plan {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-feat);

  transform: scale(1.03);
  z-index: 2;
}

.featured-plan:hover {
  box-shadow:
    var(--shadow-feat),
    0 12px 32px rgba(29,78,216,.18);
}

@media (max-width: 62em) {
  .featured-plan {
    transform: none;
  }
}

/* ==========================
   Featured Badge
   ========================== */
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  width: fit-content;

  margin-bottom: 1.1rem;

  padding: 5px 10px;

  border-radius: var(--radius-badge);
  border: 1px solid var(--brand-mid);

  background: var(--brand-light);

  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;

  color: var(--brand-dark);
}

.featured-badge::before {
  content: '';

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: var(--brand);
}

/* Spacer for alignment */
@media (min-width: 48em) {
  .pricing-plan:not(.featured-plan)::before {
    content: '';
    display: block;
    height: 30px;
    margin-bottom: 1.1rem;
  }
}

/* ==========================
   Plan Title & Pricing
   ========================== */
.plan-title {
  margin: 0 0 .5rem;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;

  color: var(--text-muted);
}

.featured-plan .plan-title {
  color: var(--brand);
}

.plan-cost {
  margin-bottom: .35rem;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;

  color: var(--text-primary);
}

.plan-period {
  margin-left: 2px;

  font-size: .9rem;
  font-weight: 500;

  color: var(--text-muted);
}

.plan-desc {
  margin: .6rem 0 1.5rem;

  font-size: .84rem;
  line-height: 1.6;

  color: var(--text-muted);

  min-height: calc(0.84rem * 1.6 * 2);
}

/* ==========================
   Divider
   ========================== */
.plan-divider {
  margin-bottom: 1.3rem;

  border: none;
  border-top: 1px solid var(--border-soft);
}

/* ==========================
   Feature List
   ========================== */
.plan-features {
  flex-grow: 1;

  margin: 0 0 1.6rem;
  padding: 0;

  list-style: none;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 9px 0;

  border-bottom: 1px solid var(--border-soft);

  font-size: .84rem;
  line-height: 1.4;
}

.plan-features li:last-child {
  border-bottom: none;
}

/* Included Features */
.plan-features li.feat-on {
  color: var(--text-primary);
  font-weight: 500;
}

.feat-icon-on {
  flex-shrink: 0;

  width: 18px;
  height: 18px;

  border-radius: 50%;
  background: #DCFCE7;

  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-icon-on svg {
  width: 10px;
  height: 10px;

  fill: none;

  stroke: var(--success);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Excluded Features */
.plan-features li.feat-off {
  color: var(--text-faint);
}

.feat-icon-off {
  flex-shrink: 0;

  width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-icon-off svg {
  width: 10px;
  height: 2px;

  fill: none;

  stroke: var(--text-faint);
  stroke-width: 2;
  stroke-linecap: round;
}

.plan-features li.feat-off .feat-label {
  text-decoration: line-through;
  text-decoration-color: var(--border);
}

/* ==========================
   CTA Button
   ========================== */
.btn-plan {
  display: block;
  width: 100%;

  padding: .9em 1em;

  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border);

  background: #FFFFFF;
  color: var(--text-primary);

  text-align: center;
  text-decoration: none;

  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;

  cursor: pointer;

  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn-plan:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
}

.btn-plan:active {
  transform: scale(.98);
}

/* Featured Button */
.featured-plan .btn-plan {
  background: linear-gradient(
    to bottom,
    #2563EB,
    #1D4ED8
  );

  color: #FFFFFF;
  border-color: var(--brand);

  box-shadow:
    inset 0 -2px 0 rgba(0,0,0,.18),
    0 4px 14px rgba(29,78,216,.28);
}

.featured-plan .btn-plan:hover {
  background: linear-gradient(
    to bottom,
    #1D4ED8,
    #163B73
  );

  border-color: var(--brand-dark);
}

/* ==========================
   Entrance Animation
   ========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-plan {
  animation: fadeUp .45s both;
}

.pricing-plan:nth-child(1) {
  animation-delay: .05s;
}

.pricing-plan:nth-child(2) {
  animation-delay: .12s;
}

.pricing-plan:nth-child(3) {
  animation-delay: .19s;
}

.pricing-plan:nth-child(4) {
  animation-delay: .26s;
}

/* ==========================
   Responsive
   ========================== */
@media (min-width: 48em) {
  .pricing-tables {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62em) {
  .pricing-tables {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* =========================
   NAVBAR
   ========================= */

.navbar{
  position:sticky;
  top:0;
  z-index:999;
  backdrop-filter:blur(14px);
  background:rgba(250,251,252,.78);
  border-bottom:1px solid rgba(214,220,229,.55);
}

.nav-inner{
  height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  display:flex;
  align-items:center;
}

.logo img{
  height:60px;
  width:auto;
}

.logo span{
  color:var(--brand);
}

.nav-right{
  display:flex;
  align-items:center;
  gap:2rem;
}

.nav-links{
  display:flex;
  gap:2rem;
  align-items:center;
}

.nav-links a{
  color:var(--text-muted);
  font-size:.95rem;
  font-weight:500;
  transition:var(--transition);
}

.nav-links a:hover{
  color:var(--text-primary);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:.95rem 1.3rem;

  border-radius:12px;

  font-size:.9rem;
  font-weight:700;

  transition:var(--transition);
}

.btn-primary{
  background:linear-gradient(
    to bottom,
    #3B82F6,
    #2563EB
  );

  color:#fff;

  box-shadow:
    inset 0 -2px 0 rgba(0,0,0,.15),
    0 10px 24px rgba(37,99,235,.25);
}

.btn-primary:hover{
  transform:translateY(-2px);
}

.btn-secondary{
  background:#fff;
  color:var(--text-primary);
  border:1px solid var(--border);
}

.btn-secondary:hover{
  background:#F8FAFC;
}

/* =========================
   TOKENS
   ========================= */

:root{
  --brand:#2563EB;
  --brand-dark:#0F172A;
  --brand-light:#EFF6FF;

  --bg-page:#FAFBFC;
  --bg-alt:#F4F7FB;

  --text-primary:#0F172A;
  --text-muted:#475569;
  --text-faint:#94A3B8;

  --border:#D6DCE5;
  --border-soft:#E7ECF2;

  --success:#16A34A;

  --radius-lg:22px;
  --radius-md:14px;
  --radius-sm:10px;

  --shadow-sm:0 2px 8px rgba(15,23,42,.05);
  --shadow-md:0 10px 30px rgba(15,23,42,.08);
  --shadow-lg:0 24px 60px rgba(37,99,235,.14);

  --container:1200px;

  --font-head:'Oswald', sans-serif;
  --font-body:'DM Sans', sans-serif;

  --transition:.25s cubic-bezier(.4,0,.2,1);
}

/* =========================
   GLOBAL
   ========================= */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg-page);
  color:var(--text-primary);
  font-family:var(--font-body);
  overflow-x:hidden;
}

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
}

.section{
  padding:110px 24px;
}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
}
/* =========================
   HAMBURGER (pricing page)
   ========================= */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-hamburger:hover {
  background: var(--bg-alt);
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 24px 20px;
  background: rgba(250,251,252,.98);
  border-top: 1px solid var(--border-soft);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
  transition: var(--transition);
  text-decoration: none;
}

.nav-drawer a:last-child {
  border-bottom: none;
}

.nav-drawer .btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

.nav-drawer .btn-primary {
  color: #fff;
}

/* =========================
   PRICING MOBILE PATCHES
   ========================= */

@media (max-width: 640px) {
  .nav-right {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .demo-wrap {
    padding: 2.5rem 1rem 2rem;
  }

  .demo-header h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  /* Remove scale on featured card — prevents horizontal overflow */
  .featured-plan {
    transform: none;
  }

  .pricing-plan {
    padding: 1.5rem 1.2rem 1.2rem;
  }
}