/* crocky.ro — decisions in ~/docs/crocky-ro/DESIGN.md. The device's theme by default; light or dark when chosen here or on crocky.host (data-theme). */

:root {
  --paper: #fbfaf6;
  --paper-2: #f2f0e8;
  --paper-3: #e9e6dc;
  --ink: #16201b;
  --ink-2: #3c4842;          /* body copy on paper: 9.4:1 */
  --ink-3: #5b665f;          /* fine print on paper: 5.9:1 */
  --line: #d9d6cb;
  --green: #137c3e;          /* CrockyHost green; white text on it: 5.3:1 */
  --green-ink: #0f6633;      /* green words on paper: 6.6:1 */
  --green-deep: #0f3a24;
  --mint: #e2f2e6;
  --mark: #f6cf4f;           /* marker yellow, annotations only */
  --r: 14px;
  --r-s: 9px;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 32px);
  --f-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-text: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
/* dark: the visitor's choice, shared with crocky.host through the crocky_pref cookie. Tokens only: the drawings follow them. */
:root[data-theme="dark"] {
  --paper: #111714;
  --paper-2: #172019;
  --paper-3: #1f2a23;
  --ink: #eef3ef;
  --ink-2: #c9d3cc;          /* body copy on paper: 11.9:1 */
  --ink-3: #9eaaa3;          /* fine print on paper: 7.2:1 */
  --line: #2b3830;
  --green-ink: #6fd396;      /* green words on dark paper: 9.6:1 */
  --green-deep: #0b2617;
  --mint: #1a2e22;
  color-scheme: dark;
}
:root[data-theme="dark"] .btn-light { background: #fbfaf6; border-color: #fbfaf6; color: #0f3a24; }
:root[data-theme="dark"] .btn-light:hover { background: #e2f2e6; border-color: #e2f2e6; }
:root[data-theme="dark"] .s-tagtext { fill: #16201b; }   /* marker notes keep dark text on yellow */
.theme { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme:hover { border-color: var(--ink-3); }
.theme .i-sun, :root[data-theme="dark"] .theme .i-moon { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
/* no choice (no data-theme): follow the device. The same dark rules as above, kept in step with them. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #111714;
    --paper-2: #172019;
    --paper-3: #1f2a23;
    --ink: #eef3ef;
    --ink-2: #c9d3cc;
    --ink-3: #9eaaa3;
    --line: #2b3830;
    --green-ink: #6fd396;
    --green-deep: #0b2617;
    --mint: #1a2e22;
    color-scheme: dark;
  }
  :root:not([data-theme]) .btn-light { background: #fbfaf6; border-color: #fbfaf6; color: #0f3a24; }
  :root:not([data-theme]) .btn-light:hover { background: #e2f2e6; border-color: #e2f2e6; }
  :root:not([data-theme]) .s-tagtext { fill: #16201b; }
  :root:not([data-theme]) .theme .i-moon { display: none; }
  :root:not([data-theme]) .theme .i-sun { display: block; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font: 400 1.0625rem/1.62 var(--f-text); font-optical-sizing: auto;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.018em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.6rem); line-height: 1.12; font-weight: 800; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.lead { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--ink-3); }
.fine { font-size: 0.9rem; color: var(--ink-3); max-width: 90ch; margin-top: 22px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--green); color: #fff; font: 700 1rem/1 var(--f-head); letter-spacing: -0.01em;
  text-decoration: none; border: 2px solid var(--green); transition: background .2s ease-out, border-color .2s ease-out, color .2s ease-out;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--green-ink); border-color: currentColor; }
.btn-ghost:hover { background: var(--mint); color: var(--green-ink); border-color: var(--green-ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-light { background: var(--paper); color: var(--green-deep); border-color: var(--paper); }
.btn-light:hover { background: var(--mint); border-color: var(--mint); color: var(--green-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { width: 140px; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover { background: var(--mint); }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; font: 600 0.95rem var(--f-text); color: var(--ink); padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.nav-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 8px; list-style: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 14px 40px -18px rgba(22, 32, 27, .35); min-width: 200px; }
.nav-menu a { display: block; padding: 11px 12px; border-radius: 7px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-menu a:hover { background: var(--mint); }
.lang { font: 700 0.85rem var(--f-head); color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; }
.lang:hover { border-color: var(--ink); }
.nav-cta { white-space: nowrap; }
@media (max-width: 479.98px) { .nav-cta { display: none; } .brand img { width: 124px; } }
@media (min-width: 900px) {
  .brand img { width: 160px; }
  .nav { gap: 4px; }
  .nav-links { display: flex; gap: 2px; }
  .nav-menu { display: none; }
  .lang { margin: 0 6px 0 10px; }
}

/* ---------- hero */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 88px); border-bottom: 1px solid var(--line);
  background: radial-gradient(1200px 520px at 85% 30%, var(--mint), transparent 60%), var(--paper); }
.hero-in { display: grid; gap: 40px; align-items: center; }
.kicker { font-weight: 600; color: var(--green-ink); margin-bottom: 18px; }
.hero h1 { max-width: 16.5ch; }
.pm { margin-left: -0.07em; }
.pm-h { margin: 0 -0.05em; }
.hero .lead { margin-top: 22px; }
.hero-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 520px; }
.hero-price-pre { font-weight: 500; color: var(--ink-3); }
.hero-price strong { font: 800 clamp(2rem, 1.6rem + 1.8vw, 2.9rem)/1 var(--f-head); color: var(--ink); letter-spacing: -0.02em; }
.hero-price-post { font-size: 0.95rem; line-height: 1.35; }
.hero-note { margin-top: 18px; font-size: 0.95rem; color: var(--ink-3); max-width: 52ch; }
.hero-art { max-width: 560px; justify-self: center; width: 100%; }
@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-art { justify-self: end; }
}

/* ---------- drawings (inc/svg.php) */
.s-paper { fill: var(--paper); }
.s-ink-stroke { stroke: var(--ink); stroke-width: 1.4; }
.s-soft { fill: #c8ccc1; }
.s-soft-stroke { stroke: #c8ccc1; stroke-width: 1.3; fill: none; }
.s-green { fill: var(--green); }
.s-mint { fill: var(--mint); }
.s-mark { fill: var(--mark); }
.s-ink { fill: var(--ink); }
.s-line { stroke: var(--ink); stroke-width: 1.2; fill: none; opacity: .55; }
.s-dash { stroke-dasharray: 3 3; }
.s-paper-stroke { stroke: var(--paper); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.s-label { font: 600 9.5px var(--f-text); fill: var(--ink); }
.s-label-inv { fill: #fff; }
.s-label-sm { font-size: 8px; }
.s-btntext { font: 700 7.5px var(--f-head); fill: #fff; }
.s-btntext-l { font-size: 10px; }
.s-small { font: 700 8.5px var(--f-text); fill: var(--ink); }
.s-tagtext { font: 700 10px var(--f-text); fill: var(--ink); }

/* ---------- section heads */
section { scroll-margin-top: 12px; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .lead { color: var(--ink-2); }

/* ---------- plans: an annotated price list, one row per package */
.plans { padding: clamp(56px, 8vw, 104px) 0; }
.currency { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; width: max-content; background: var(--paper); }
.currency-label { font-size: 0.9rem; color: var(--ink-3); padding: 0 8px 0 10px; }
.currency button { font: 700 0.9rem var(--f-head); color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 36px; }
.currency button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }   /* inverts with the theme */
.plan-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.plan { display: grid; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.plan-art { background: var(--paper-2); border-radius: var(--r); padding: 14px 10px; }
.plan-svg { width: 100%; max-width: 360px; margin: 0 auto; }
.plan-body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; }
.plan-tag { font: 600 1.06rem/1.4 var(--f-head); color: var(--ink); margin-top: 6px; }
.plan-for { color: var(--ink-3); font-size: 0.95rem; margin-top: 4px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px 22px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 11px; height: 6px; border: solid var(--green); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.plan-buy { display: grid; gap: 10px; align-content: start; }
.price { font: 800 clamp(1.7rem, 1.4rem + 1vw, 2.15rem)/1.05 var(--f-head); color: var(--ink); letter-spacing: -0.02em; }
.price > span:not(.money) { font: 500 0.95rem var(--f-text); color: var(--ink-3); letter-spacing: 0; }
.price-none { font-size: 1rem; font-weight: 600; }
.ask { justify-self: center; font-size: 0.95rem; font-weight: 500; padding: 4px; }
.plan-advanced .plan-art { background: var(--mint); }
@media (min-width: 640px) { .ticks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) {
  .plan { grid-template-columns: 300px 1fr 230px; gap: 36px; align-items: center; padding: 34px 0; }
  .plan-buy { align-self: center; }
}

/* ---------- included */
.included { background: var(--paper-2); border-block: 1px solid var(--line); padding: clamp(52px, 7vw, 92px) 0; }
.included-in { display: grid; gap: 28px; }
.incl { margin: 0; display: grid; gap: 0; }
.incl > div { padding: 18px 0; border-top: 1px solid var(--line); }
.incl dt { font: 700 1.08rem var(--f-head); color: var(--ink); }
.incl dd { margin: 6px 0 0; }
@media (min-width: 760px) { .incl { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1080px) { .included-in { grid-template-columns: 300px 1fr; align-items: start; } .incl { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- work */
.work { padding: clamp(56px, 8vw, 104px) 0; }
.work-list { display: grid; gap: clamp(44px, 6vw, 72px); }
.case { display: grid; gap: 26px; align-items: center; }
.case-shots { position: relative; margin: 0 0 0; padding-bottom: 8%; }
.shot-desk { border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(22, 32, 27, .45); width: 92%; }
.shot-mob { position: absolute; right: 0; bottom: 0; width: 25%; border-radius: 16px; border: 5px solid var(--ink); box-shadow: 0 22px 40px -22px rgba(22, 32, 27, .55); }
.case-kind { font-weight: 600; color: var(--green-ink); font-size: 0.95rem; }
.case-text h3 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem); font-weight: 800; margin-top: 4px; }
.case-text p:not(.case-kind) { margin-top: 12px; max-width: 54ch; }
.case-link { display: inline-block; margin-top: 16px; font-weight: 700; }
@media (min-width: 900px) {
  .case { grid-template-columns: 1.25fr 1fr; gap: 48px; }
  .case:nth-child(even) .case-shots { order: 2; }
}

/* ---------- steps */
.steps { background: var(--green-deep); color: #dcebe1; padding: clamp(52px, 7vw, 92px) 0; }
.steps h2 { color: #fff; }
.step-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 26px; counter-reset: s; }
.step-list li { counter-increment: s; position: relative; padding-top: 52px; border-top: 1px solid rgba(255, 255, 255, .22); }
.step-list li::before { content: counter(s); position: absolute; top: 14px; left: 0; font: 800 1.5rem/1 var(--f-head); color: var(--mark); }
.step-list h3 { color: #fff; font-size: 1.15rem; }
.step-list p { margin-top: 8px; }
@media (min-width: 760px) { .step-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (min-width: 1080px) { .step-list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- paid once */
.once { padding: clamp(56px, 8vw, 104px) 0; }
.once-grid { display: grid; gap: 18px; }
.once-item { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 26px; display: grid; gap: 12px; align-content: start; background: var(--paper); }
.once-item .btn { justify-self: start; margin-top: 6px; }
@media (min-width: 760px) { .once-grid { grid-template-columns: 1fr 1fr; } }
.care-title { margin-top: 44px; font-size: 1.15rem; }
.care { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.care li { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.care strong { display: block; color: var(--ink); font-family: var(--f-head); }
.care-text { display: block; }
.care-buy { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.care-buy .price { font-size: 1.45rem; }
.care-buy a { font-weight: 700; }
@media (min-width: 760px) { .care li { grid-template-columns: 1fr auto; align-items: center; } }
.cmp-title { margin-top: 52px; font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); font-weight: 800; }
.cmp-wrap { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.98rem; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.cmp thead th { font: 700 1rem var(--f-head); color: var(--ink); border-bottom: 2px solid var(--ink); }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.cmp-note { margin-top: 16px; color: var(--ink-3); }
/* phones: each row becomes the question, then the two answers side by side, each with its column name */
@media (max-width: 599px) {
  .cmp { min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cmp tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cmp tbody tr:first-child { border-top: 2px solid var(--ink); }
  .cmp tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 8px; border: 0; }
  .cmp td { padding: 0; border: 0; }
  .cmp td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 0.8rem var(--f-text); color: var(--ink-3); }
}

/* ---------- faq */
.faq { background: var(--paper-2); border-top: 1px solid var(--line); padding: clamp(52px, 7vw, 92px) 0; }
.faq-in { display: grid; gap: 26px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 700 1.06rem/1.35 var(--f-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat; transition: transform .2s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; max-width: 70ch; }
@media (min-width: 1000px) { .faq-in { grid-template-columns: 340px 1fr; } }

/* ---------- contact */
.contact { background: var(--green); color: #eaf6ee; padding: clamp(56px, 8vw, 96px) 0; }
.contact h2 { color: #fff; }
.contact .lead { margin-top: 14px; color: #eaf6ee; }

/* ---------- footer */
.foot { background: var(--paper); padding: 40px 0 48px; font-size: 0.93rem; }
.foot-in { display: grid; gap: 28px; }
.foot-brand img { width: 130px; margin-bottom: 12px; }
.foot-brand p + p { margin-top: 8px; }
.foot-links ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links img { margin-top: 14px; width: 170px; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.3fr 1fr; } }
