/* sheet.css · SPEC §6.4 · owned by the sheet builder. Price (start 5/12) + FAQ (end 7/12), one flat sheet on white. */


/* the ₪ inside a price at .74em (the same ratio as base.css .cur), with no span, so the price stays one plain text run */
@font-face { font-family: "Sheet Cur"; src: url(/home/fonts/google-sans-hebrew.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+20AA; size-adjust: 74%; }

.sheet { padding-block: 0 var(--s9); interpolate-size: allow-keywords; }
.sheet__in {
  display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--s8); align-items: start;
}   /* no top padding or rule: the ways' own 120 px bottom is the gap (one rhythm, not two) */
.sheet__h2 { margin-block-end: var(--s6); }

/* ---------- price ---------- */
.sheet__plans { border: 1px solid var(--line); border-radius: 20px; }
.sheet__plan { padding: 28px 28px 32px; }
.sheet__plan + .sheet__plan { border-block-start: 1px solid var(--line); }
.sheet__head { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.sheet__nm { display: flex; align-items: baseline; gap: var(--s3); }
.sheet__name { font: 500 19px/1.3 var(--f-sans); }
.sheet__soon { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.sheet__amt {
  /* Google Sans, not Science Gothic: SG's 0 is a rounded box, and "0 ₪" has to be unmistakable */
  font-family: "Sheet Cur", var(--f-sans); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums; font-synthesis: none; white-space: nowrap; word-spacing: -.08em;
}
/* Pro cannot be bought yet: the same face and axes, smaller and quieter than Free's 0 */
.sheet__amt--soon { font-size: clamp(24px, 2.2vw, 32px); color: var(--ink-2); }
.sheet__per { font: 400 17px/1 var(--f-sans); color: var(--ink-2); margin-inline-start: 2px; word-spacing: normal; }
.sheet__inc { margin-block-start: var(--s4); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
/* a two-column list, no separators: nothing can dangle at a line's start or end */
.sheet__inc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
.sheet__inc > .sheet__all { grid-column: 1 / -1; }
.sheet__inc bdi { white-space: nowrap; }   /* "Local Store", "AI", numbers never split inside a cell */
.sheet__cta { margin-block-start: var(--s5); }

/* ---------- FAQ: native <details>, hairlines between, the open answer on wash ---------- */
.sheet__faq details { border-block-start: 1px solid var(--line); }
.sheet__faq details:last-of-type { border-block-end: 1px solid var(--line); }
.sheet__q {
  display: flex; align-items: center; gap: var(--s4); min-height: 64px; padding-block: var(--s4);
  font: 500 19px/1.4 var(--f-sans); list-style: none;
}
.sheet__chev {
  flex: none; width: 20px; height: 20px; margin-inline-start: auto;
  fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 150ms var(--e-lift), stroke 150ms;
}
details[open] > .sheet__q .sheet__chev { transform: rotate(180deg); stroke: var(--ink); }
@media (hover: hover) { .sheet__q:hover .sheet__chev { stroke: var(--ink); } }
.sheet__faq details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size var(--d-rise) var(--e-rise), content-visibility var(--d-rise) allow-discrete;
}
.sheet__faq details[open]::details-content { block-size: auto; }
.sheet__a { margin-block-end: var(--s4); padding: var(--s4) 20px; border-radius: var(--r-key); background: var(--wash); }
.sheet__a > p { max-inline-size: 62ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
details[open] > .sheet__a { animation: sheet-rise var(--d-rise) var(--e-rise) both; }
@keyframes sheet-rise { from { opacity: 0; transform: translateY(8px); } }
.sheet__url, .sheet__nb { white-space: nowrap; }

/* ---------- < 1024: one column, price then FAQ ---------- */
@media (max-width: 1023.98px) {
  .sheet__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--s8); }
}
/* ---------- < 768: plan rows stack (name and price on one line, details under, the button full width) ---------- */
@media (max-width: 767.98px) {
  .sheet { padding-block-end: var(--s8); }
  .sheet__h2 { margin-block-end: var(--s5); }
  .sheet__plan { padding: var(--s5) 20px; }
  .sheet__head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: var(--s3); }
  .sheet__amt { font-size: 40px; }
  .sheet__amt--soon { font-size: 22px; }
  /* Pro cannot be bought yet: the same face and axes, smaller and quieter than Free's 0 */
.sheet__amt--soon { font-size: clamp(24px, 2.2vw, 32px); color: var(--ink-2); }
.sheet__per { font-size: 15px; }
  .sheet__inc { margin-block-start: var(--s3); }
  .sheet__cta { display: flex; width: 100%; }
  .sheet__q { font-size: 17px; min-height: 56px; padding-block: var(--s3); }
  .sheet__a > p { font-size: 15px; line-height: 1.5; }
  .sheet__url { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- reduced: static; instant open ---------- */
@media (prefers-reduced-motion: reduce) {
  .sheet__faq details::details-content { transition: none !important; }
  details[open] > .sheet__a { animation: none !important; }
  .sheet__chev { transition: none !important; }
}
