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

body {
  background: #ffffff;
  color: #1c1917;
  font-family: var(--nyf-font-latin);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: var(--nyf-font-arabic); }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.store {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--store-canvas);
}
.store main { flex: 1; }
.store h1, .store h2 { color: var(--store-primary-dark); line-height: 1.25; }
.store[data-heading="serif"] h1 { font-family: "Cinzel", Georgia, serif; }
[dir="rtl"] .store[data-heading="serif"] h1 { font-family: var(--nyf-font-arabic); }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 640px; display: grid; gap: 20px; justify-items: start; }

.store-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--store-border);
}
.store-header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--store-primary);
  color: #ffffff;
}
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--store-primary-dark); }
.store-nav { display: flex; gap: 20px; margin-inline-start: auto; }
.store-nav a { color: #44403c; font-weight: 600; font-size: 0.92rem; text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.store-nav a:hover { color: var(--store-primary); }
.store-nav a.active { color: var(--store-primary); border-bottom-color: var(--store-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}
.btn-primary { background: var(--store-primary); color: #ffffff; }
.btn-primary:hover { background: var(--store-primary-dark); }
.btn-primary:disabled { background: #a8a29e; cursor: not-allowed; }
.btn-outline { background: #ffffff; border-color: var(--store-border); color: var(--store-primary-dark); }
.btn-outline:hover { border-color: var(--store-primary); background: var(--store-primary-light); }
.btn-ghost { background: transparent; border-color: var(--store-border); color: var(--store-primary-dark); padding-inline: 12px; flex: none; }
.btn-large { min-height: 50px; padding-inline: 26px; font-size: 1rem; }

.hero { padding-block: 72px 56px; text-align: center; }
.hero .container { display: flex; flex-direction: column; align-items: center; }
.kicker {
  padding: 5px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid var(--store-border);
  background: var(--store-primary-light);
  color: var(--store-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 18px; }
.hero-tagline { font-size: 1.25rem; font-weight: 600; color: var(--store-accent); max-width: 760px; margin-bottom: 14px; }
.hero-description { font-size: 1.05rem; color: #44403c; max-width: 780px; margin-bottom: 32px; }

.section { padding-block: 48px 72px; }
.section > .container > h1 { font-size: 2rem; margin-bottom: 28px; }
.section h2 { font-size: 1.45rem; margin-bottom: 20px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.section-head p { color: #57534e; margin-bottom: 20px; }

.highlights { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.highlights li, .plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.highlights li { padding: 16px 18px; background: #ffffff; border: 1px solid var(--store-border); border-radius: 12px; font-weight: 500; }
.highlights svg, .plan-features svg { flex: none; margin-top: 4px; color: var(--store-primary); }

.cycles { display: grid; justify-items: center; gap: 36px; }
.cycle-input { position: absolute; opacity: 0; pointer-events: none; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: #ffffff; border: 1px solid var(--store-border); border-radius: 10px; }
.segmented label { display: flex; align-items: center; min-height: 38px; padding-inline: 20px; border-radius: 7px; color: #44403c; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
#cycle-monthly:checked ~ .segmented label[for="cycle-monthly"],
#cycle-annual:checked ~ .segmented label[for="cycle-annual"] { background: var(--store-primary); color: #ffffff; }
#cycle-monthly:focus-visible ~ .segmented label[for="cycle-monthly"],
#cycle-annual:focus-visible ~ .segmented label[for="cycle-annual"] { outline: 2px solid var(--store-accent); outline-offset: 2px; }
#cycle-monthly:checked ~ .plans .plan-offer[data-cycle="annual"],
#cycle-annual:checked ~ .plans .plan-offer[data-cycle="monthly"] { display: none; }
.plan-offer { display: flex; flex-direction: column; }

.plans { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px; background: #ffffff; border: 1px solid var(--store-border); border-radius: 16px; }
.plan-popular { border: 2px solid var(--store-primary); }
.plan-flag { position: absolute; top: -12px; inset-inline-start: 20px; padding: 2px 12px; border-radius: 999px; background: var(--store-primary); color: #ffffff; font-size: 0.76rem; font-weight: 700; }
.plan h2 { font-size: 1.2rem; margin-bottom: 8px; }
.plan-description { font-size: 0.9rem; color: #57534e; min-height: 5.8em; }
.plan-price { font-size: 1.9rem; font-weight: 800; color: var(--store-primary-dark); margin-top: 14px; }
.plan-price small { font-size: 0.85rem; font-weight: 600; color: #57534e; }
.plan-badge { min-height: 1.6em; margin-bottom: 14px; font-size: 0.82rem; font-weight: 700; color: var(--store-accent); }
.plan-features { list-style: none; display: grid; gap: 10px; margin-top: 22px; font-size: 0.9rem; }

.card { background: #ffffff; border: 1px solid var(--store-border); border-radius: 16px; padding: 28px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.checkout-form { display: grid; gap: 16px; }
.checkout-form h2, .summary h2 { margin-bottom: 4px; }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--store-primary-light); color: var(--store-primary-dark); font-size: 0.9rem; }
.notice-error { background: #fef2f2; color: #a3162e; }
.summary { display: grid; gap: 14px; position: sticky; top: 92px; }
.summary-plan { font-weight: 700; }
.summary dl { display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: #57534e; }
.summary dd { font-weight: 600; }
.summary-total { padding-top: 12px; border-top: 1px solid var(--store-border); }
.summary-total dd { font-size: 1.4rem; font-weight: 800; color: var(--store-primary-dark); }
.summary-note { font-size: 0.82rem; color: #57534e; }
.summary a { color: var(--store-primary); font-weight: 600; font-size: 0.9rem; }

.store-footer { border-top: 1px solid var(--store-border); background: #ffffff; padding-block: 22px; }
.store-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.store-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.store-footer a { color: var(--store-primary-dark); font-size: 0.9rem; font-weight: 600; }

@media (max-width: 760px) {
  .container { padding-inline: 16px; }
  .store-header-inner { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .brand { flex: 1; }
  .brand-name { font-size: 0.95rem; }
  .store-nav { order: 3; width: 100%; margin-inline-start: 0; }
  .hero { padding-block: 44px 32px; }
  .highlights { grid-template-columns: 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .plan-description { min-height: 0; }
  .card { padding: 20px; }
}
