/* E-commerce (/e-commerce/ and its English twin): what the page adds to the service template
   (service.css). The plans, the demo with its admin-panel request, and the rest of what the store does. Class prefix: ec-. */

/* ---------- the plans: one table, a column per plan and a row per feature ----------
   Each plan's column head (th.ec-plan) carries its name, its price from Billing's offer, the
   yearly price once Billing answers it, and its button; .ec-plan-top marks the one to lead with.
   A third plan is one more column head and a cell in every row. .ec-banner is a launch offer's
   strip, set between the section's head and the table; nothing uses it until there is an offer. */
.ec-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ec-compare-wrap { overflow-x: auto; }
.ec-compare {
  width: 100%; min-width: 340px; table-layout: fixed; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line);
}
.ec-compare-corner { width: 38%; }
.ec-compare thead th.ec-plan {
  position: relative; vertical-align: top; text-align: center; padding: 0;
  background: linear-gradient(180deg, #ffffff, #f1f4fa); box-shadow: inset 0 5px 0 var(--lapis-500);
}
.ec-compare thead th.ec-plan-top { box-shadow: inset 0 5px 0 var(--gold), 0 22px 34px -30px rgba(14,27,82,.55); }
/* The column's own height, so a taller Basic (the ribbon, or its second button in a full round)
   never drops its head below Pro's: both start their name at the same reserved offset (room for
   the ribbon whether it shows or not), and the buttons sit pinned to the bottom (Abdu, 15/11/2026). */
.ec-plan-inner { display: flex; flex-direction: column; height: 100%; padding: 50px 18px 22px; }
.ec-plan-foot { margin-top: auto; }
/* «تحتاج أكثر من الخطتين؟» (14/11/2026): one wide card under the table, lapis with a gold rule */
.ec-more {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap;
  margin-top: 22px; padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px); border-radius: 3px; color: #fff;
  background: radial-gradient(120% 160% at 100% 0%, var(--lapis-700) 0%, var(--lapis-900) 60%, var(--lapis-950) 100%);
  box-shadow: inset 0 4px 0 var(--gold), 0 22px 36px -28px rgba(9,18,58,.7);
}
[dir="ltr"] .ec-more { background: radial-gradient(120% 160% at 0% 0%, var(--lapis-700) 0%, var(--lapis-900) 60%, var(--lapis-950) 100%); }
.ec-more-copy { flex: 1 1 340px; min-width: 0; }
.ec-more h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; color: #fff; }
.ec-more p { margin: 6px 0 0; font-size: 16.5px; line-height: 1.75; color: #dfe5f8; }
.ec-more .btn { flex: none; }
/* Basic's buttons follow the free plan (Abdu, 15/11/2026; ecommerce.js marks #plans). .ec-free-open:
   the gold ribbon and «ابدأ مجانًا» alone. .ec-free-full: «اشترك الآن» and «احجز دورك في المجاني القادم», to the reservation
   page. Neither (no free plan, or no script): «اشترك الآن» alone, so a closed plan
   never promises free months. While the free plan is being asked, Basic's buttons keep their place
   unseen, so the wrong one never flashes. */
.ec-plan-ribbon { display: none; position: absolute; top: 0; inset-inline: 0; margin: 0; padding: 6px 8px; background: var(--gold); color: var(--lapis-950); font-family: var(--f-ui); font-weight: 700; font-size: 15px; line-height: 1.5; }
.ec-plan .btn.ec-plan-free, .ec-plan .btn.ec-plan-wait { display: none; }
#plans.ec-free-open .ec-plan-ribbon { display: block; }
#plans.ec-free-open .ec-plan .btn.ec-plan-free { display: flex; }
#plans.ec-free-open .ec-plan .btn.ec-plan-paid { display: none; }
#plans.ec-free-full .ec-plan .btn.ec-plan-wait { display: flex; margin-top: 10px; }
/* the long «احجز دورك في المجاني القادم» wraps inside a narrow column instead of spilling out */
.ec-plan .btn.ec-plan-wait { white-space: normal; text-align: center; line-height: 1.45; padding-block: 10px; }
#plans.ec-free-asking .ec-plan[data-plan="basic"] .btn { visibility: hidden; }
/* the columns' HTML names no amount (Abdu, 15/11/2026): its line waits unseen while Billing is asked */
#plans.ec-price-asking .ec-plan-price, #plans.ec-price-asking .ec-plan-year { visibility: hidden; }
.ec-plan-tax { margin: 2px 0 0; font-family: var(--f-ui); font-weight: 400; font-size: 13px; color: var(--ink-3); }
.ec-plans-fit { margin-top: 12px; font-family: var(--f-ui); font-weight: 700; font-size: 17px; line-height: 1.7; color: var(--lapis-900); }
.ec-plan-name { display: block; font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--lapis-900); }
.ec-plan-price { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.ec-plan-price b { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 3.8vw, 50px); line-height: 1.25; color: var(--lapis-700); }
.ec-plan-price span { font-family: var(--f-ui); font-weight: 500; font-size: 17px; color: var(--ink-2); }
.ec-plan-year { margin: 2px 0 0; font-family: var(--f-ui); font-weight: 500; font-size: 15px; color: var(--ink-3); }
.ec-plan .btn { display: flex; width: 100%; justify-content: center; margin-top: 16px; }
.ec-compare tbody th, .ec-compare tbody td { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.6; vertical-align: middle; }
.ec-compare tbody th { text-align: start; font-weight: 500; color: var(--ink); }
.ec-compare tbody td { text-align: center; color: var(--ink-2); }
.ec-compare tbody tr:nth-child(even) th, .ec-compare tbody tr:nth-child(even) td { background: #f7f8fb; }
.ec-compare tbody td:last-child { background: rgba(227,168,43,.07); }
.ec-compare tbody tr:nth-child(even) td:last-child { background: rgba(227,168,43,.12); }
.ec-yes [aria-hidden] { font-size: 21px; font-weight: 700; color: var(--lapis-500); }
.ec-compare td:last-child.ec-yes [aria-hidden] { color: var(--gold-deep); }
.ec-no [aria-hidden] { font-size: 19px; color: var(--ink-3); }
.ec-soon { display: inline-block; margin-inline-start: 6px; padding: 1px 9px; border-radius: 3px; background: var(--gold-soft); color: #3b2806; font-family: var(--f-ui); font-weight: 500; font-size: 13.5px; line-height: 1.7; vertical-align: 1px; }
.ec-only { display: inline-block; margin-inline-start: 6px; padding: 1px 9px; border-radius: 3px; background: var(--lapis-100); color: var(--lapis-900); font-family: var(--f-ui); font-weight: 500; font-size: 13.5px; line-height: 1.7; vertical-align: 1px; }
.ec-compare-tutorials-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; border-radius: 14px;
  background: var(--lapis-100); color: var(--lapis-900); font-family: var(--f-ui); font-weight: 500; font-size: 14.5px; line-height: 1.4;
  text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.ec-compare-tutorials-link:hover, .ec-compare-tutorials-link:focus-visible { background: var(--lapis-500); color: #fff; }
.ec-country-closed { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.ec-country-line { margin-top: 14px; font-size: 14.5px; line-height: 1.7; color: var(--ink-3); }
.ec-country-line .ec-country-change { border: 0; background: none; padding: 0; font: inherit; color: var(--lapis-700); text-decoration: underline; cursor: pointer; }
.ec-country-line select { margin-inline-start: 8px; font: inherit; }
@media (max-width: 600px) {
  .ec-compare-corner { width: 34%; }
  .ec-plan-inner { padding: 38px 8px 16px; }
  .ec-plan-ribbon { padding: 5px 4px; font-size: 13px; }
  .ec-more { padding: 20px 18px; }
  .ec-more p { font-size: 15.5px; }
  .ec-more .btn { width: 100%; justify-content: center; }
  .ec-plan-name { font-size: 19px; }
  .ec-plan-price { flex-direction: column; align-items: center; gap: 0; }
  .ec-plan-price b { font-size: 25px; }
  .ec-plan-price span, .ec-plan-year { font-size: 13.5px; }
  .ec-plan .btn { padding-inline: 8px; font-size: 14.5px; }
  .ec-compare tbody th, .ec-compare tbody td { padding: 12px 8px; font-size: 14.5px; }
  .ec-compare-tutorials-link { padding: 5px 10px; font-size: 13px; }
}
.ec-banner {
  margin-bottom: 22px; padding: 20px 26px; border-radius: 3px; color: var(--lapis-950);
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); line-height: 1.6;
  background: linear-gradient(180deg, #f0bb45, #dba021);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -5px 0 rgba(90,55,0,.3);
}

/* ---------- the demo: the same shop in its three designs ---------- */
.ec-demo { align-items: start; }
.ec-demo .ledger { margin-top: 0; }
.ec-demo .actions { margin-top: 28px; }
.ec-note { margin-top: 18px; font-size: 15.5px; line-height: 1.8; color: var(--ink-3); max-width: 40em; }
.ec-phones { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.8vw, 22px); }
.ec-phone { display: flex; flex-direction: column; gap: 10px; text-align: center; text-decoration: none; font-family: var(--f-ui); font-weight: 500; font-size: 15px; color: var(--lapis-900); }
.ec-phone img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; background: var(--lapis-950);
  border: 4px solid var(--lapis-950); border-radius: clamp(12px, 2vw, 24px);
  box-shadow: 0 24px 30px -22px rgba(14,27,82,.7); transition: transform .35s var(--ease);
}
.ec-phone:hover img { transform: translateY(-5px); }
.ec-phone:hover span { color: var(--lapis-500); }

/* ---------- the admin panel: a short form, a lead, then the way in ---------- */
.ec-panel {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 22px clamp(28px, 4vw, 64px); align-items: start;
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3.4vw, 40px); border-radius: 3px;
  background: linear-gradient(180deg, #ffffff, #f1f4fa);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 5px 0 var(--lapis-500), inset 0 -4px 0 rgba(14,27,82,.07);
}
.ec-panel h3 { font-size: var(--t-lg); color: var(--lapis-900); margin-bottom: 8px; }
.ec-panel-copy p { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.ec-panel-form [hidden] { display: none; }
.ec-panel-form .actions { margin-top: 20px; }
.ec-panel-form .form-note { margin-top: 14px; }
.ec-panel-form .form-status { margin-top: 12px; font-size: 17px; }
.ec-panel-form .form-status:empty { display: none; }
.ec-panel-access dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.ec-panel-access dl > div { padding: 14px 16px; border-radius: 3px; background: var(--lapis-100); }
.ec-panel-access dt { font-family: var(--f-ui); font-size: var(--t-xs); color: var(--ink-2); }
.ec-panel-access dd { font-family: var(--f-ui); font-weight: 700; font-size: 20px; color: var(--lapis-900); text-align: start; user-select: all; }

/* ---------- what you get: six groups of small cards, tabs once ecommerce-features.js runs ----------
   Without the script every group shows under its heading (.ec-fhead) and the tab row stays hidden.
   With it, #features gets .ec-tabbed: the row shows, the headings step aside (each panel is named
   by its tab) and one group shows at a time. A card is a <details>: its icon, name, one line and
   «التفاصيل» with a chevron on the summary; the longer text opens under it. Cards in a row share its height. */
#features .head { margin-bottom: clamp(28px, 3.4vw, 44px); }
.ec-ftabs[hidden] { display: none; }
.ec-ftabs {
  display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: clamp(20px, 2.6vw, 30px); padding: 6px 4px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.ec-ftabs::-webkit-scrollbar { display: none; }
.ec-ftab {
  flex: none; padding: 9px 20px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: #fff; color: var(--lapis-900); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--f-ui); font-weight: 500; font-size: 16px; line-height: 1.6;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.ec-ftab:hover { box-shadow: inset 0 0 0 1px var(--lapis-300); background: var(--lapis-100); }
.ec-ftab[aria-selected="true"] { background: var(--lapis-900); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.ec-ftab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.ec-fgroup + .ec-fgroup { margin-top: clamp(36px, 4.4vw, 56px); }
.ec-fhead { margin-bottom: 18px; font-size: var(--t-lg); color: var(--lapis-900); }
#features.ec-tabbed .ec-fgroup + .ec-fgroup { margin-top: 0; }
#features.ec-tabbed .ec-fhead { display: none; }
.ec-fgroup[hidden] { display: none; }
.ec-fgroup:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }

.ec-fcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.ec-fcard { display: flex; }
.ec-fcard > details {
  flex: 1; min-width: 0; border-radius: 3px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 3px 0 var(--lapis-100);
  transition: box-shadow .2s var(--ease);
}
/* while one card is open, the closed ones keep their own height instead of stretching to its row */
.ec-fcards:has(details[open]) > .ec-fcard > details:not([open]) { align-self: flex-start; }
.ec-fcard > details:hover { box-shadow: inset 0 0 0 1px var(--lapis-300), inset 0 3px 0 var(--lapis-500); }
.ec-fcard > details[open] { box-shadow: inset 0 0 0 1px var(--lapis-300), inset 0 3px 0 var(--gold); }
.ec-fcard summary {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "icon . more" "name name name" "line line line";
  row-gap: 4px; align-items: start; padding: 18px 18px 20px; cursor: pointer; list-style: none; border-radius: 3px;
}
.ec-fcard summary::-webkit-details-marker { display: none; }
.ec-fcard summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ec-ficon {
  grid-area: icon; width: 46px; height: 46px; padding: 10px; margin-bottom: 10px; border-radius: 3px; background: var(--lapis-100);
  fill: none; stroke: var(--lapis-500); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible;
}
.ec-ficon .g { stroke: var(--gold-deep); }
.ec-ficon .gf { fill: var(--gold); stroke: none; }
.ec-ficon .w { fill: var(--lapis-100); }
.ec-fname { grid-area: name; font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.55; color: var(--lapis-900); }
.ec-fname .ec-only { margin-inline-start: 6px; vertical-align: 2px; font-size: 13px; line-height: 1.6; }
.ec-fline { grid-area: line; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
/* «التفاصيل» and a chevron that turns when the card is open (Abdu, 15/11/2026, in place of the «+»);
   the summary itself is the control, so its open state is the browser's own */
.ec-fmore {
  grid-area: more; justify-self: end; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-ui); font-weight: 500; font-size: 14.5px; line-height: 1.6; color: var(--lapis-700); white-space: nowrap;
}
.ec-fmore svg { flex: none; width: 12px; height: 12px; transition: transform .25s var(--ease); }
.ec-fcard summary:hover .ec-fmore { text-decoration: underline; text-underline-offset: 3px; }
details[open] > summary .ec-fmore { color: var(--lapis-900); }
details[open] > summary .ec-fmore svg { transform: rotate(180deg); }
.ec-fdetail { margin: -6px 18px 0; padding: 12px 0 18px; border-top: 1px solid var(--stone-2); font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
#features .actions { margin-top: clamp(32px, 4vw, 48px); }
@media (prefers-reduced-motion: reduce) {
  .ec-ftab, .ec-fcard > details, .ec-fmore svg { transition: none; }
}
/* a phone: the tab row runs into the gutters and scrolls sideways; a card sets its icon beside the words */
@media (max-width: 600px) {
  .ec-ftabs { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .ec-ftab { padding: 8px 16px; font-size: 15px; }
  .ec-fcards { gap: 10px; }
  .ec-fcard summary {
    grid-template-columns: 42px minmax(0, 1fr); grid-template-areas: "icon name" "icon line" "icon more";
    column-gap: 14px; row-gap: 2px; padding: 16px;
  }
  .ec-fmore { justify-self: start; margin-top: 4px; }
  .ec-ficon { width: 42px; height: 42px; padding: 9px; margin-bottom: 0; }
  .ec-fname { font-size: 17px; }
  .ec-fline { font-size: 15px; }
  .ec-fdetail { margin: -4px 16px 0; padding: 10px 0 16px; font-size: 15px; }
}

/* ---------- from our work: where the platform comes from ---------- */
.ec-origin { margin-bottom: clamp(28px, 4vw, 44px); }
/* a shop we built: its words, and beside them its home page on a phone */
.ec-shops { max-width: 980px; gap: clamp(12px, 1.8vw, 22px); }
.ec-shop {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(108px, 30%, 160px); grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(16px, 2.4vw, 28px); row-gap: 6px; align-content: start;
}
.ec-shop > * { grid-column: 1; }
.ec-shop img {
  grid-column: 2; grid-row: 1 / -1; align-self: start;
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; background: var(--lapis-950);
  border: 3px solid var(--lapis-950); border-radius: clamp(12px, 1.6vw, 18px);
  box-shadow: 0 20px 26px -20px rgba(14,27,82,.7);
}
.ec-shop .more { align-self: end; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .ec-phones { order: -1; max-width: 520px; }
  .ec-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ec-panel-access dl { grid-template-columns: minmax(0, 1fr); }
  .ec-phone { font-size: 14px; }
  .ec-phone img { border-width: 3px; }
}

/* ---------- the offer and "you won't start alone": first on the page ----------
   Dark like the hero, because the fixed header is see-through over it until the page scrolls. The
   HTML's order is the phone's: the offer box (the free plan's, or FIRST20's), then the owner's
   block, so the offer's title and button sit in a phone's first screen. On a wide screen the two
   stand side by side. Vera's video left the page on 14/11/2026 (it spoke of FIRST20 and of a store
   in two days); its files stay in assets/video/. Outside the countries where Billing applies the
   code, ecommerce.js hides the offer box and the owner's block leads. */
.ec-top {
  padding-top: clamp(80px, 8vw, 108px); padding-bottom: clamp(44px, 5vw, 72px);
  background: radial-gradient(120% 80% at 50% 0%, #142672 0%, var(--lapis-950) 70%);
  border-bottom: 3px solid var(--gold); color: #fff;
}
.ec-top-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "offer owner"; gap: 22px clamp(28px, 5vw, 72px); align-items: center;
}
.ec-offer { grid-area: offer; }
.ec-owner { grid-area: owner; }
.ec-offer[hidden] { display: none; }
.ec-offer {
  max-width: 640px; padding: clamp(22px, 2.6vw, 34px); border-radius: 3px; color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #f4f1e8); box-shadow: inset 0 6px 0 var(--gold), 0 30px 50px -34px rgba(0,0,0,.8);
}
.ec-offer-tag { display: inline-block; padding: 2px 12px; border-radius: 3px; background: var(--gold); color: var(--lapis-950); font: 700 15px/1.8 var(--f-ui); }
.ec-offer-title { margin-top: 12px; font-size: clamp(26px, 2.5vw, 33px); line-height: 1.45; color: var(--lapis-900); }
.ec-offer-title b { color: var(--lapis-700); white-space: nowrap; }
.ec-offer-title s { color: var(--ink-3); font-weight: 500; text-decoration-thickness: 2px; white-space: nowrap; }
.ec-offer-limit { margin-top: 8px; font: 700 18px/1.7 var(--f-ui); color: var(--gold-deep); }
.ec-offer-count { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 3px; background: var(--lapis-900); color: #fff; font: 700 17px/1.6 var(--f-ui); }
.ec-offer-count[hidden] { display: none; }
.ec-offer-points { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin-top: 18px; }
.ec-offer-points li { position: relative; padding-inline-start: 28px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.ec-offer-points li::before { content: "✓"; position: absolute; inset-inline-start: 2px; top: 0; font-weight: 700; color: var(--lapis-500); }
.ec-offer-points #guarantee { font-weight: 700; color: var(--lapis-900); }
.ec-offer .actions { margin-top: 20px; }
.ec-offer .ec-note { margin-top: 12px; font-size: 14.5px; }
.ec-offer-over { margin-top: 16px; font: 700 17px/1.7 var(--f-ui); color: var(--lapis-900); }
.ec-offer.is-over .ec-offer-title, .ec-offer.is-over .ec-offer-limit, .ec-offer.is-over .ec-offer-points,
.ec-offer.is-over .actions, .ec-offer.is-over .ec-note { display: none; }
/* the free plan's box (free-plan spec, step 1): the same box as the offer's, shown in its place */
.ec-free [hidden] { display: none; }
.ec-free-points { grid-template-columns: minmax(0, 1fr); }
.ec-free-after { margin-top: 14px; font: 700 17px/1.7 var(--f-ui); color: var(--lapis-900); }
.ec-free-nocard { margin-top: 8px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.ec-free-nocard a { color: #1d6b3a; font-weight: 700; }
.ec-free-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ec-free-go .ec-offer-count { margin-top: 0; }
.ec-free-full-text { margin-top: 14px; font: 700 18px/1.7 var(--f-ui); color: var(--lapis-900); }
.ec-first20 { padding: 10px 14px; border-radius: 3px; background: var(--paper-2, #f1f4fa); color: var(--ink-2); }
.ec-first20[hidden], .qa[hidden] { display: none; }
.ec-first20 s { color: var(--ink-3); }
/* the owner's block: on the dark ground, a gold rule on its start side */
.ec-owner { max-width: 640px; padding-inline-start: 20px; box-shadow: inset 3px 0 0 var(--gold); }
[dir="rtl"] .ec-owner { box-shadow: inset -3px 0 0 var(--gold); }
.ec-owner h2 { font-size: var(--t-lg); color: #fff; }
.ec-owner p { margin-top: 6px; font-size: 16.5px; line-height: 1.75; color: #dfe5f8; }
.ec-owner h2 + p { margin-top: 8px; }
.ec-owner .actions { margin-top: 16px; }
@media (max-width: 860px) {
  .ec-top-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "offer" "owner"; gap: 30px; }
  .ec-offer, .ec-owner { justify-self: center; width: 100%; }
}
/* a phone: the box tightens so its title, price and button fit the first screen */
@media (max-width: 600px) {
  .ec-offer { padding: 18px 18px 20px; }
  .ec-offer-tag { font-size: 14px; padding: 1px 10px; }
  .ec-offer-title { margin-top: 10px; font-size: 23px; line-height: 1.4; }
  .ec-offer-limit { margin-top: 6px; font-size: 16px; }
  .ec-offer-count { margin-top: 8px; padding: 4px 12px; font-size: 15.5px; }
  .ec-offer-points { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 12px; }
  .ec-offer-points li { padding-inline-start: 24px; font-size: 15.5px; line-height: 1.6; }
  .ec-offer .actions { margin-top: 16px; }
  .ec-offer .actions .btn { width: 100%; justify-content: center; }
  .ec-owner { padding-inline-start: 16px; }
  .ec-owner p { font-size: 16px; }
}

/* ---------- the tutorials: every subscription includes them, organized by the panel's sections ---------- */
.ec-tutorials .actions { margin-top: 20px; }
.ec-tutorials-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ec-tutorials-list a {
  display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px;
  background: var(--stone); color: var(--lapis-700); font-family: var(--f-ui); font-weight: 500; font-size: 15px;
  text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.ec-tutorials-list a:hover, .ec-tutorials-list a:focus-visible { background: var(--lapis-100); color: var(--lapis-900); }

/* ---------- the mailing list: an email, a consent box, one button ---------- */
.ec-mail-box {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px clamp(28px, 4vw, 64px); align-items: start;
  padding: clamp(24px, 3.4vw, 40px); border-radius: 3px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 5px 0 var(--gold);
}
.ec-mail-copy h2 { font-size: var(--t-lg); color: var(--lapis-900); }
.ec-mail-copy p { margin-top: 8px; font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.ec-mail-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); cursor: pointer; }
.ec-mail-consent input { flex: none; width: 20px; height: 20px; margin-top: 4px; accent-color: var(--lapis-500); }
.ec-mail-form .actions { margin-top: 18px; }
.ec-mail-form .form-status { margin-top: 12px; font-size: 16.5px; }
.ec-mail-form .form-status:empty { display: none; }
.ec-mail-form .form-note { margin-top: 12px; }
.ec-mail-form [hidden] { display: none; }
@media (max-width: 860px) { .ec-mail-box { grid-template-columns: minmax(0, 1fr); } }
/* a wrong field, said under it in the page's language instead of the browser's bubble */
.ec-field-error { margin: 0; font-family: var(--f-ui); font-size: 14.5px; line-height: 1.6; color: #7a2016; }
.ec-mail-consent + .ec-field-error { margin-top: 6px; }
.ec-mail-form [aria-invalid="true"]:not([type="checkbox"]) { box-shadow: inset 0 0 0 2px #7a2016, inset 0 -3px 0 rgba(14,27,82,.06); }
