.product-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr; } }

.feature-list { display: grid; gap: 12px; }
.feature {
  position: relative;
  padding: 24px 24px 24px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.feature.on { background: rgba(184,168,255,.08); border-color: rgba(184,168,255,.28); }
.feature::before {
  content: ""; position: absolute; left: 10px; top: 28px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--fog);
  transition: all var(--dur-2) var(--ease);
}
.feature.on::before { height: calc(100% - 56px); background: var(--lilac); }
.feature h4 {
  margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em;
  color: var(--paper); display: flex; align-items: center; gap: 12px;
}
.feature h4 .n {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--fog); font-weight: 400; opacity: .7;
}
.feature p {
  margin: 8px 0 0; color: var(--fog); font-size: 14.5px;
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-2) var(--ease), margin var(--dur-2) var(--ease);
}
.feature.on p { max-height: 200px; margin-top: 10px; }

/* product phone */
.product-device {
  position: relative; display: grid; place-items: center; min-height: 640px;
}
.product-device::before {
  content: ""; position: absolute; inset: 10%;
  background: radial-gradient(closest-side, rgba(198,245,154,.15), transparent 70%);
  filter: blur(50px);
}
.product-screen {
  width: 320px; height: 650px; border-radius: 52px;
  background: linear-gradient(180deg, #18181f 0%, #0b0b0f 100%);
  border: 1px solid #2a2a34; padding: 14px; position: relative; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 10px 30px rgba(0,0,0,.4);
}
.product-screen .notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; background: #050506; border-radius: 999px; z-index: 4;
}
.prod-frame {
  position: absolute; inset: 14px; border-radius: 40px; overflow: hidden; background: #06060a;
}
.prod-layer {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transform: translateY(20px);
  padding: 60px 16px 16px; color: var(--paper);
}
.prod-layer.on { opacity: 1; transform: translateY(0); }

/* screenshot layers */
.prod-layer .layer-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}

/* alternating calendar images */
.prod-layer .cal-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0;
  transition: opacity .7s ease;
  display: block;
}
.prod-layer .cal-img.active { opacity: 1; }

/* iOS home screen widget layer
   Reference: native iOS Home Screen with EasyPlanner widgets.
   Background mimics a softly-blurred wallpaper behind dark stone widgets. */
.prod-ios-home {
  padding: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, #6b7a86 0%, #4a5560 35%, #2a323a 70%, #1a2026 100%),
    #1a2026;
}

/* purple accent reused across widgets (iOS system indigo / app brand) */
.prod-ios-home {
  --w-accent: #6e5cf2;
  --w-accent-2: #7a68ff;
  --w-bg: rgba(28, 28, 32, .92);
  --w-text: #ffffff;
  --w-muted: rgba(255, 255, 255, .55);
  --w-divider: rgba(255, 255, 255, .12);
  --w-bar-ghost: rgba(255, 255, 255, .22);
  --w-up: #4ade80;
}

.ios-sb {
  display: flex; justify-content: space-between; align-items: center;
  padding: 50px 22px 6px;
}
.ios-time {
  font-size: 13px; font-weight: 600; color: #fff; letter-spacing: -.01em;
}
.ios-sb-icons { display: flex; align-items: center; gap: 5px; }

.ios-widgets {
  padding: 6px 14px 14px;
  display: flex; flex-direction: column; gap: 14px;
}

/* widget + caption stack */
.ios-stack {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ios-w-caption {
  font-size: 9px; color: rgba(255, 255, 255, .85);
  letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.ios-w {
  background: var(--w-bg);
  border-radius: 22px;
  position: relative; overflow: hidden;
  width: 100%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .04) inset,
    0 8px 24px rgba(0, 0, 0, .25);
}

/* ============== LARGE WIDGET (revenue + earnings) ============== */
.ios-w-lg {
  padding: 12px 14px;
  display: flex; gap: 12px;
  min-height: 130px;
}
.ios-wl-left {
  flex: 1.05; display: flex; flex-direction: column;
}
.ios-wl-label {
  display: block;
  font-family: var(--f-mono); font-size: 7.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--w-muted); margin-bottom: 6px;
}
.ios-wl-label-right { padding-left: 2px; }

.ios-wl-amount-row {
  display: flex; align-items: center; gap: 6px;
}
.ios-wl-amount {
  display: block;
  font-size: 22px; font-weight: 700; color: var(--w-text);
  letter-spacing: -.02em; line-height: 1;
}
.ios-arrow-up { color: var(--w-up); flex: none; }

.ios-wl-rows {
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--w-divider);
  padding-top: 8px; margin-top: auto;
}
.ios-wl-rows div {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 8.5px; color: var(--w-muted);
  line-height: 1.2;
}
.ios-wl-rows div span:last-child {
  color: var(--w-text); font-weight: 500;
}

.ios-wl-right {
  width: 92px;
  display: flex; flex-direction: column;
  padding-left: 10px;
  position: relative;
}
.ios-wl-right::before {
  content: "";
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 1px; background: var(--w-divider);
}

/* ============== EARNINGS BAR CHART ============== */
.ios-echart {
  flex: 1;
  display: flex; gap: 3px; align-items: flex-end;
  margin-top: 4px;
  min-height: 70px;
}
.ios-ec {
  flex: 1; position: relative;
  height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
}
.ios-bar {
  width: 5px;
  height: var(--h, 6%);
  min-height: 3px;
  background: var(--w-accent);
  border-radius: 3px;
}
/* tall gray "ghost" bar (potential / total) with purple fill on top */
.ios-bar-ghost {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  background: var(--w-bar-ghost);
}
.ios-bar-fill {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  background: var(--w-accent);
}

.ios-days {
  display: flex; gap: 3px; margin-top: 4px;
}
.ios-days span {
  flex: 1; text-align: center;
  font-family: var(--f-mono); font-size: 7.5px;
  color: rgba(255, 255, 255, .45);
  padding: 2px 0;
  line-height: 1;
}
/* highlighted current day pill (Saturday) */
.ios-days span.a {
  color: #fff; font-weight: 600;
  background: var(--w-accent);
  border-radius: 6px;
}

/* ============== MEDIUM (WIDE) WIDGET — date + appointments ============== */
.ios-w-md {
  padding: 14px 14px;
  display: flex; align-items: stretch; gap: 14px;
  min-height: 100px;
}
.ios-wm-date {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 64px;
  position: relative;
  padding-right: 10px;
}
.ios-wm-date::after {
  content: "";
  position: absolute; right: 0; top: 8%; bottom: 8%;
  width: 1px; background: var(--w-divider);
}
.ios-wm-num {
  display: block;
  font-size: 30px; font-weight: 700; color: var(--w-accent-2);
  line-height: 1; letter-spacing: -.02em;
}
.ios-wm-day {
  display: block;
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--w-text);
  margin-top: 6px;
}
.ios-wm-month {
  display: block;
  font-size: 8px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--w-muted); margin-top: 2px;
}
.ios-wm-right {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: 8px;
}

/* appointment row: small purple bar + title + time */
.ios-appt {
  display: flex; align-items: stretch; gap: 8px;
}
.ios-appt-bar {
  width: 2px; flex: none;
  background: var(--w-accent-2);
  border-radius: 2px;
  align-self: stretch;
  min-height: 22px;
}
.ios-appt-text {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.ios-appt-title {
  font-size: 10px; font-weight: 600; color: var(--w-text);
  line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ios-appt-time {
  font-size: 9px; color: var(--w-muted); line-height: 1.1;
  font-feature-settings: "tnum";
}

/* ============== SMALL WIDGETS ROW ============== */
.ios-w-row {
  display: flex; gap: 12px;
  align-items: flex-start;
}
.ios-w-row .ios-stack { flex: 1; min-width: 0; }
.ios-w-sm {
  padding: 10px 10px;
  min-height: 130px;
  display: flex; flex-direction: column;
}

/* small day widget */
.ios-w-sm-day { gap: 6px; }
.ios-ws-top { margin-bottom: 2px; }
.ios-ws-daynum {
  display: block;
  font-size: 22px; font-weight: 700; color: var(--w-accent-2);
  letter-spacing: -.02em; line-height: 1;
}
.ios-ws-dayname {
  display: block;
  font-size: 8px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--w-text);
  margin-top: 4px;
}
.ios-ws-appts {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 2px;
}
.ios-appt-sm .ios-appt-bar { width: 2px; min-height: 18px; }
.ios-appt-sm .ios-appt-title { font-size: 9.5px; }
.ios-appt-sm .ios-appt-time { font-size: 8.5px; }

/* small revenue widget */
.ios-w-sm-rev { gap: 0; }
.ios-ws-label {
  display: block;
  font-family: var(--f-mono); font-size: 7px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--w-muted); margin-bottom: 4px;
}
.ios-ws-amount {
  display: block;
  font-size: 16px; font-weight: 700; color: var(--w-text);
  letter-spacing: -.02em; line-height: 1;
}
.ios-arrow-up-sm { width: 9px; height: 9px; }
.ios-ws-sub {
  display: block;
  font-size: 9px; color: var(--w-muted); margin-top: 3px;
}
.ios-echart-sm {
  flex: 1;
  min-height: 38px;
  margin-top: 6px;
}
.ios-echart-sm .ios-bar { width: 4px; }
.ios-days-sm span { font-size: 6.5px; }


/* layer 1 — calendar (legacy styles kept for reference) */
.pl-cal h4 { font-family: var(--f-display); font-weight: 400; font-size: 22px; margin: 0 4px 14px; letter-spacing: -.02em; }
.pl-cal .ev {
  margin: 0 4px 8px; padding: 12px;
  border-radius: 14px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.pl-cal .ev .t { font-family: var(--f-mono); color: rgba(255,255,255,.55); font-size: 11.5px; }
.pl-cal .ev .bar { width: 3px; height: 30px; border-radius: 2px; background: var(--lilac); margin-right: 10px; }
.pl-cal .ev.green .bar { background: var(--mint-2); }
.pl-cal .ev.orange .bar { background: var(--peach); }
.pl-cal .ev-row { display: flex; align-items: center; }

/* layer 2 — clients */
.pl-cli ul { margin: 0; padding: 0; list-style: none; }
.pl-cli li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.pl-cli .av {
  width: 36px; height: 36px; border-radius: 50%; font-family: var(--f-display);
  display: grid; place-items: center; font-size: 15px; color: #fff;
}
.pl-cli li:nth-child(1) .av { background: linear-gradient(135deg,#6a4a9a,#2b2340); }
.pl-cli li:nth-child(2) .av { background: linear-gradient(135deg,#8e6e42,#3a2d1b); }
.pl-cli li:nth-child(3) .av { background: linear-gradient(135deg,#3a6a5e,#172c26); }
.pl-cli li:nth-child(4) .av { background: linear-gradient(135deg,#9a4a6a,#3a1b2c); }
.pl-cli .nm { flex: 1; font-size: 14px; }
.pl-cli .nm small { display: block; color: rgba(255,255,255,.5); font-size: 11.5px; margin-top: 2px; }
.pl-cli .tag {
  font-family: var(--f-mono); font-size: 10px; padding: 4px 8px;
  background: rgba(198,245,154,.12); color: var(--mint); border-radius: 999px;
}

/* layer 3 — services */
.pl-srv { padding-top: 54px; }
.pl-srv .card {
  margin: 0 4px 10px; padding: 16px;
  background: linear-gradient(135deg, rgba(184,168,255,.1), rgba(184,168,255,0) 70%);
  border: 1px solid rgba(184,168,255,.18); border-radius: 16px;
}
.pl-srv .card h5 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.pl-srv .card small { font-size: 11.5px; color: rgba(255,255,255,.55); font-family: var(--f-mono); }
.pl-srv .card .price { font-family: var(--f-display); font-style: italic; font-size: 24px; margin-top: 6px; color: var(--paper); }
.pl-srv .card.alt {
  background: linear-gradient(135deg, rgba(198,245,154,.1), rgba(198,245,154,0) 70%);
  border-color: rgba(198,245,154,.18);
}

/* layer 4 — analytics */
.pl-an { padding: 54px 12px 0; }
.pl-an h4 { font-family: var(--f-display); font-weight: 400; margin: 0 4px 4px; font-size: 22px; letter-spacing: -.02em; }
.pl-an .bignum { font-family: var(--f-display); font-style: italic; font-size: 44px; color: var(--paper); padding: 0 4px; letter-spacing: -.02em; }
.pl-an .bignum span { color: var(--mint-2); font-size: 14px; font-style: normal; font-family: var(--f-mono); margin-left: 8px; }
.pl-an .chart { height: 120px; padding: 12px 4px; position: relative; }
.pl-an .chart svg { width: 100%; height: 100%; }
.pl-an .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px; }
.pl-an .metrics > div { padding: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; }
.pl-an .metrics small { font-family: var(--f-mono); font-size: 10.5px; color: rgba(255,255,255,.55); display: block; text-transform: uppercase; letter-spacing: .08em; }
.pl-an .metrics strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 22px; margin-top: 2px; color: var(--paper); }
