/* Plugin Nest — the plugin shop on oneclickorderpro.com (home, plugin pages, Pro prices, My licence).
   Light and bright; one palette for every page. The legal pages and /pay use their own files. */

:root {
  --bg: #fbf9ff;
  --surface: #ffffff;
  --ink: #22163f;
  --muted: #5d5579;
  --line: #e9e4f5;
  --plum: #2b1a3d;
  --violet: #6d28d9;
  --violet-soft: #f1ebff;
  --orange: #f08c00;
  --orange-soft: #fff3df;
  --green: #15803d;
  --green-soft: #e3f7ea;
  --red: #b91c1c;
  --red-soft: #fff1f2;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --shadow: 0 10px 30px -18px rgba(43, 26, 61, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, label:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 64px; }
.section--tint { background: linear-gradient(180deg, #f6f1ff 0%, var(--bg) 100%); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.head { display: grid; gap: 10px; margin-bottom: 32px; }
.head--center { text-align: center; justify-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; font: 700 16px/1.2 var(--body); text-decoration: none; cursor: pointer; text-align: center; }
.btn--main { background: var(--plum); color: #fff; }
.btn--main:hover { background: #3d2856; }
.btn--free { background: var(--green-soft); color: var(--green); }
.btn--free:hover { background: #d3f1de; }
.btn--line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 2px #cfc5ea; }
.btn--buy { width: 100%; margin-top: auto; background: linear-gradient(90deg, #2b1a3d 0%, #6d28d9 100%); color: #fff; }
.btn--buy:hover { filter: brightness(1.1); }
.btn.is-off { background: #e7e3f0; color: #6b6585; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251, 249, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; min-height: 64px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.01em; }
.brand svg { flex: none; }
.top__nav { display: flex; gap: 6px; }
.top__nav a { padding: 8px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.top__nav a:hover { background: var(--violet-soft); }
.top__nav a[aria-current="page"] { background: var(--violet-soft); color: var(--violet); }
.top__menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.top__bars, .top__bars::before, .top__bars::after { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.top__bars::before { position: absolute; top: -7px; }
.top__bars::after { position: absolute; top: 7px; }
@media (max-width: 720px) {
  .top__menu { display: block; }
  .top__nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; padding: 8px max(18px, env(safe-area-inset-right, 0px)) 14px max(18px, env(safe-area-inset-left, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .top__nav.is-open { display: flex; }
  .top__nav a { padding: 12px 10px; font-size: 18px; }
}

/* Shop: header with search, categories, plugin cards (like a marketplace) */
.shop-hero { padding-block: 52px 8px; background: radial-gradient(900px 340px at 85% 0%, #ece3ff 0, rgba(236, 227, 255, 0) 70%), radial-gradient(700px 300px at 0% 100%, #fff1dc 0, rgba(255, 241, 220, 0) 70%); }
.shop-hero__in { display: grid; gap: 16px; justify-items: start; }
.shop-hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.03em; max-width: 16ch; }
.shop-hero h1 em { font-style: normal; color: var(--violet); }
.find { width: min(100%, 560px); margin-top: 6px; }
.find input { width: 100%; height: 56px; padding: 0 18px 0 52px; border: 1px solid #d8cfee; border-radius: 16px; font: 17px var(--body); color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5579' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 18px center / 22px no-repeat; box-shadow: var(--shadow); }
.shop { padding-top: 40px; }
.shop__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; }
.shop__bar .h2 { font-size: clamp(24px, 3.4vw, 32px); display: flex; align-items: center; gap: 10px; }
.shop__count { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font: 800 16px var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 15px var(--body); cursor: pointer; }
.chip span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.chip:hover { border-color: #cdbff0; }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip[aria-pressed="true"] span { color: #d9cfee; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(43, 26, 61, .04); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d7cbf6; }
.tile:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tile, .tile:hover { transition: none; transform: none; } }
.tile[hidden] { display: none; }
.tile__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.tile__icon { width: 56px; height: 56px; border-radius: 14px; }
.tile__new { padding: 3px 10px; border-radius: 999px; background: var(--orange-soft); color: #8a4b00; font-size: 13px; font-weight: 800; }
.tile__name { font: 800 20px/1.2 var(--display); }
.tile__by { font-size: 14px; color: var(--muted); }
.tile__line { color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.tile__free { padding: 4px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 14px; }
.tile__pro { font-size: 14px; font-weight: 700; color: var(--violet); text-align: right; }
.shop__empty { margin-top: 10px; padding: 18px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed #d8cfee; border-radius: 16px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { position: relative; counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 800; }
.steps b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 500; color: var(--violet); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* Plugin page */
.ph { padding-block: 48px 24px; }
.ph__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ph__name { display: flex; align-items: center; gap: 14px; }
.ph__name img { width: 64px; height: 64px; border-radius: 16px; }
.ph h1 { font-size: clamp(34px, 5.2vw, 52px); font-weight: 800; letter-spacing: -.025em; }
.ph__text { display: grid; gap: 20px; }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot figcaption { padding: 12px 16px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.shot figcaption b { color: var(--ink); }
.shot--phone { max-width: 300px; justify-self: center; border-radius: 28px; padding: 8px; background: var(--plum); border: 0; }
.shot--phone img { border-radius: 21px; }
.shot--phone figcaption { color: #e9defc; border: 0; text-align: center; padding: 8px 6px 2px; }
@media (max-width: 860px) { .ph__grid { grid-template-columns: minmax(0, 1fr); } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
/* align-content: start keeps the rows their own height, so a short card does not stretch its "Pro" badge. */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; align-content: start; }
.feature b { font-size: 17px; }
.feature span:not(.pill) { color: var(--muted); font-size: 16px; }
.feature--pro { background: var(--violet-soft); border-color: #ddd0fb; }
.pill { display: inline-block; justify-self: start; align-self: start; padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 1.5; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--violet); color: #fff; }

/* "More plugins" at the end of a plugin page: the shop's cards, one row at most. */
.more__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 28px; }
.more__head .head { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.gallery--phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 28px; }
.gallery--phones .shot--phone { width: min(100%, 270px); }

.compare-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; min-width: 480px; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-size: 18px; background: #f7f3ff; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 120px; }
.compare tr:last-child td { border-bottom: 0; }
.yes, .no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; }
.yes { background: var(--green-soft); color: var(--green); }
.no { background: #f1eef7; color: #9a93b3; }

/* Prices */
.plans { display: grid; gap: 20px; }
.plans__radio { position: absolute; opacity: 0; pointer-events: none; }
.plans__tabs { display: flex; justify-self: center; gap: 4px; padding: 5px; border-radius: 999px; background: #ece6f8; max-width: 100%; }
.plans__tabs label { cursor: pointer; padding: 10px 18px; border-radius: 999px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.plans__tabs small { color: var(--green); font-weight: 800; }
.plans__radio:focus-visible ~ .plans__tabs { outline: 3px solid var(--violet); outline-offset: 3px; }
.plans__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.plan__name { font-size: 22px; font-weight: 800; }
.plan__for { color: var(--muted); font-size: 15px; margin-top: 2px; }
.plan__p { display: none; flex-direction: column; flex: 1; }
.plan__price { font: 800 42px/1.1 var(--display); margin-top: 16px; letter-spacing: -.02em; }
.plan__price small { font: 500 16px var(--body); color: var(--muted); letter-spacing: 0; }
.plan__sub { color: var(--muted); margin: 4px 0 20px; }
.plans__soon { text-align: center; background: var(--orange-soft); color: #7a4200; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.plans__note { text-align: center; color: var(--muted); font-size: 15px; max-width: 760px; justify-self: center; }
.switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.switch a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.switch a img { width: 32px; height: 32px; border-radius: 8px; }
.switch a[aria-current="page"] { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet); }
@media (max-width: 420px) { .plans__tabs label { padding: 9px 11px; font-size: 15px; } .plans__tabs small { display: block; font-size: 11px; text-align: center; } }

/* Forms (contact, My licence) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field textarea { width: 100%; font: 17px var(--body); color: var(--ink); padding: 12px 14px; border: 1px solid #d5cde9; border-radius: 12px; background: #fff; }
.field input[type=file] { padding: 9px 10px; font-size: 15px; }
.field small { color: var(--muted); font-size: 14px; }
.msg { border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.msg--ok { background: var(--green-soft); color: #14532d; }
.msg--err { background: var(--red-soft); color: #881337; }
.contact { max-width: 760px; margin: 0 auto; }
.contact__who { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

/* My licence */
.lic { max-width: 680px; margin: 0 auto; display: grid; gap: 18px; }
.lic__product { display: flex; align-items: center; justify-content: center; gap: 10px; font: 800 20px var(--display); }
.lic__product img { width: 36px; height: 36px; border-radius: 9px; }
.lic__key { font: 700 22px Consolas, Menlo, monospace; color: #0b3b8c; background: #eef4ff; border-radius: 12px; padding: 14px; text-align: center; word-break: break-all; }
.lic__meta { text-align: center; color: var(--muted); }
.lic__valid { text-align: center; font-weight: 800; }
.lic__valid.is-ended { color: var(--red); }
.lic__renew { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; background: var(--violet-soft); border-radius: 14px; padding: 16px; }
.lic__renew .btn { min-height: 44px; font-size: 15px; padding: 0 16px; background: var(--violet); color: #fff; }
.lic__renew .btn.is-light { background: var(--surface); color: var(--violet); box-shadow: inset 0 0 0 1px #c9b6f7; }
.lic__renew p { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 14px; }
.lic__sites { list-style: none; margin: 0; padding: 0; }
.lic__sites li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); word-break: break-all; }
.lic__remove { flex: none; border: 1px solid #f3b4b4; background: #fff; color: var(--red); font: 700 15px var(--body); padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.small { color: var(--muted); font-size: 15px; text-align: center; }

/* Footer */
.foot { margin-top: 40px; background: var(--plum); color: #d9cfee; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1120px; margin: 0 auto; padding: 48px max(18px, env(safe-area-inset-right, 0px)) 28px max(18px, env(safe-area-inset-left, 0px)); }
.foot__about { display: grid; gap: 12px; align-content: start; }
.brand--foot { color: #fff; font-size: 19px; }
.foot__col { display: grid; gap: 8px; align-content: start; }
.foot__col h2 { font: 700 14px var(--body); letter-spacing: .08em; text-transform: uppercase; color: #b9a8dc; margin-bottom: 4px; }
.foot__mail { user-select: all; color: #fff; word-break: break-all; }
.foot__legal { max-width: 1120px; margin: 0 auto; padding: 18px max(18px, env(safe-area-inset-right, 0px)) 32px max(18px, env(safe-area-inset-left, 0px)); border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #b9a8dc; display: grid; gap: 6px; }
.foot__legal a { text-decoration: underline; }
@media (max-width: 860px) { .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot__about { grid-column: 1 / -1; } }
