/* ==========================================================================
   Ollfy — company site
   A small, sharp software studio building honest apps for Shopify merchants.
   ========================================================================== */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f1eee7;
  --ink: #15161c;
  --muted: #595e6b;
  --accent: #ef4a26;
  --accent-ink: #c1370f;
  --accent-soft: #fbe6df;
  --line: rgba(21, 22, 28, 0.10);
  --line-strong: rgba(21, 22, 28, 0.18);
  --shadow: 0 1px 2px rgba(21,22,28,.04), 0 12px 32px -12px rgba(21,22,28,.14);
  --radius: 16px;
  --maxw: 1120px;
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d11;
    --surface: #14161d;
    --surface-2: #191c25;
    --ink: #f2f1ec;
    --muted: #9aa0ac;
    --accent: #ff6a47;
    --accent-ink: #ffa88f;
    --accent-soft: #2a1a14;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.18);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -16px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---- eyebrow / tag ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .78em 1.4em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6em; font-family: var(--font-head); font-weight: 700; font-size: 1.24rem; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: inline-flex; }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 84px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 82% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50% 45% at 8% 90%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.32rem); color: var(--muted); max-width: 56ch; margin-top: 1.2rem; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero .u { color: var(--accent-ink); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 2.6rem; color: var(--muted); font-size: .92rem; }
.trust span { display: inline-flex; align-items: center; gap: .5em; }
.trust svg { width: 16px; height: 16px; color: var(--accent); }

/* ---- section ---- */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---- products ---- */
.products { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .products { grid-template-columns: 1fr; } }
.product {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product .logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.product h3 { font-size: 1.5rem; }
.product .kicker { font-family: var(--font-head); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product p { color: var(--muted); }
.product ul { list-style: none; padding: 0; margin: 6px 0 22px; display: grid; gap: 8px; }
.product li { position: relative; padding-left: 26px; color: var(--ink); font-size: .96rem; }
.product li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.product .foot { margin-top: auto; display: flex; align-items: center; gap: 16px; }
.badge { font-size: .74rem; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* ---- principles ---- */
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ic { width: 38px; height: 38px; color: var(--accent); margin-bottom: 14px; }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat { border-left: 3px solid var(--accent); padding-left: 18px; }
.stat b { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.8rem); display: block; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---- prose (about/privacy) ---- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.lead { font-size: 1.18rem; color: var(--muted); }
.prose code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: .12em .4em; }

/* Policy tables run wider than the 72ch prose measure, and scroll on narrow screens. */
.policy-table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; display: block; overflow-x: auto; }
.policy-table th, .policy-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.policy-table thead th { background: var(--surface-2); font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.policy-table td { color: var(--ink); }

/* ---- CTA band ---- */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 24px; padding: clamp(40px, 6vw, 68px); text-align: center; }
.cta-band h2 { color: #fff; }
@media (prefers-color-scheme: dark) { .cta-band { background: var(--surface-2); } .cta-band h2 { color: var(--ink); } }
.cta-band p { color: color-mix(in srgb, var(--bg) 75%, #888); max-width: 52ch; margin: 0 auto 1.6rem; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.mail { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; margin-top: 12px; }

/* ---- brand / logo page ---- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 8px; }
.logo-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.logo-stage { display: grid; place-items: center; padding: 40px 28px; min-height: 150px; }
.logo-stage img { max-width: 82%; height: auto; }
.logo-stage.on-paper { background: #f7f5f0; }
.logo-stage.on-ink { background: #15161c; }
.logo-stage.on-accent { background: #ef4a26; }
.logo-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.logo-meta span { font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.logo-meta a { font-size: .82rem; color: var(--accent-ink); font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 8px; }
.swatch { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.swatch .chip { height: 92px; }
.swatch .info { padding: 12px 14px; }
.swatch .info b { display: block; font-family: var(--font-head); font-size: .95rem; }
.swatch .info code { font-size: .82rem; color: var(--muted); }
.usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
@media (max-width: 720px) { .usage-grid { grid-template-columns: 1fr; } }
.usage-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--surface); }
.usage-card h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.usage-card.do h3 { color: #0b6b5b; }
.usage-card.dont h3 { color: var(--accent-ink); }
.usage-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.usage-card li { margin-bottom: 7px; font-size: .95rem; }

/* brand lockup image (header + footer) */
.brand picture { display: inline-flex; }
.brand-logo { height: 30px; width: auto; display: block; }
