/* =============================================================
   WEBSITE JONNY — bespoke shopfront. Designed independently of the
   trade template: warm editorial palette, Fraunces display type,
   cobalt accent. Static, no build.
   ============================================================= */

:root {
  --ink: #16171d;
  --ink-2: #1c1e26;
  --paper: #f6f2ea;
  --paper-2: #efe8db;
  --card: #fffdf9;
  --accent: #2f4bff;
  --accent-2: #ff5c38;      /* warm spark, used sparingly */
  --on-accent: #ffffff;
  --muted: #6a6a63;
  --muted-d: #a7a79e;       /* muted on dark */
  --line: #e3dccd;
  --line-d: #33343d;

  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(.4,0,.2,1);
  --shadow: 0 10px 30px rgba(20,21,26,.10), 0 3px 8px rgba(20,21,26,.06);
  --shadow-lg: 0 40px 80px rgba(20,21,26,.22);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.3vw, 4.3rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow { display: inline-block; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.section--dark .eyebrow { color: #8ea0ff; }

.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--paper2 { background: var(--paper-2); }
.head { max-width: 40rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.head--center { margin-inline: auto; text-align: center; }
.head p { color: var(--muted); font-size: 1.12rem; margin-top: 1rem; }
.section--dark .head p { color: var(--muted-d); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--sans); font-weight: 700; font-size: 1rem; padding: .85rem 1.4rem; border-radius: 100px; border: 1.5px solid transparent; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease); line-height: 1; white-space: nowrap; }
.btn--lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px rgba(47,75,255,.28); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47,75,255,.36); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark svg { width: 34px; height: 34px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { stroke: #fff; stroke-width: 9; stroke-linecap: round; fill: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em; }
.brand-name em { font-style: italic; color: var(--accent); }
.nav-links { display: none; gap: 1.9rem; }
.nav-links a { font-weight: 600; font-size: .98rem; color: var(--ink); opacity: .78; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: none; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; }
.nav-toggle span { display: block; height: 2.5px; width: 24px; margin-inline: auto; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.nav[data-open="true"] .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav[data-open="true"] .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav-drawer { display: grid; gap: .3rem; padding: .5rem var(--gutter) 1.4rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-drawer[hidden] { display: none; }
.nav-drawer a { padding: .7rem .2rem; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.nav-drawer a.btn { border: 0; margin-top: .6rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -20%; right: -10%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; background: radial-gradient(circle, rgba(47,75,255,.10), transparent 62%); pointer-events: none; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .84rem; letter-spacing: .04em; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: .45rem .9rem; border-radius: 100px; box-shadow: var(--shadow); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #23c552; box-shadow: 0 0 0 4px rgba(35,197,82,.16); }
.hero h1 { margin: 1.2rem 0 0; }
.hero h1 .mark { color: var(--accent); font-style: italic; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-2) 55%, transparent); text-decoration-thickness: .1em; text-underline-offset: .12em; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.32rem); color: #3c3d44; margin-top: 1.4rem; max-width: 34rem; }
.lead em { font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-note { margin-top: 1.3rem; font-size: .92rem; color: var(--muted); }

.hero-visual { position: relative; }
.browser { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(1.4deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f2ede4; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d8d0c2; }
.browser-bar span:first-child { background: #ff6058; } .browser-bar span:nth-child(2) { background: #ffbd2e; } .browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar i { margin-left: 10px; font-style: normal; font-size: .74rem; color: var(--muted); background: var(--paper); padding: 3px 12px; border-radius: 100px; }
.browser img { width: 100%; height: 340px; object-fit: cover; object-position: top; }
.phone { position: absolute; right: -6px; bottom: -34px; width: 128px; border-radius: 20px; border: 5px solid var(--ink); background: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-4deg); }
.phone img { width: 100%; height: 250px; object-fit: cover; object-position: top; border-radius: 15px; }

/* ---------- Trust strip ---------- */
.strip { background: var(--ink); color: var(--paper); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; padding-block: 1.1rem; }
.strip-inner > span { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); font-weight: 700; }
.strip ul { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; list-style: none; padding: 0; }
.strip li { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.strip li::before { content: "✦"; color: #8ea0ff; margin-right: .5rem; font-size: .7em; vertical-align: middle; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.work-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work-shot { height: 230px; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3.5s ease; }
.work-card:hover .work-shot img { object-position: bottom; }
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; }
.work-meta .tag { font-weight: 600; font-size: .95rem; }
.work-meta .live { font-weight: 700; color: var(--accent); font-size: .92rem; }
.work-card--live { position: relative; }
.work-card--live::before { content: "Live demo"; position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 100px; }

/* ---------- Features (dark) ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--ink); padding: clamp(1.6rem, 3vw, 2.3rem); }
.feature-no { font-family: var(--serif); font-size: 1rem; color: #8ea0ff; font-weight: 600; }
.feature h3 { margin: .7rem 0 .55rem; color: #fff; }
.feature p { color: var(--muted-d); font-size: 1rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.2rem; counter-reset: step; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.step-no { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin-bottom: 1rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--muted); }
.steps em { font-style: italic; color: var(--ink); }

/* ---------- Pricing ---------- */
.pricing-wrap { max-width: 760px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.price-card__badge { background: var(--ink); color: #fff; text-align: center; font-weight: 700; font-size: .9rem; letter-spacing: .02em; padding: .8rem 1rem; }
.price-card__top { padding: clamp(1.8rem, 4vw, 2.8rem); text-align: center; border-bottom: 1px solid var(--line); }
.price-figure { display: flex; align-items: baseline; justify-content: center; gap: .7rem; flex-wrap: wrap; }
.price-was { font-family: var(--serif); font-size: 1.9rem; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent-2); text-decoration-thickness: 2px; }
.price-now { font-family: var(--serif); font-size: clamp(3.4rem, 9vw, 4.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.price-unit { font-size: .95rem; color: var(--muted); font-weight: 600; }
.price-blurb { color: var(--muted); max-width: 34rem; margin: 1.1rem auto 1.7rem; }
.price-list { list-style: none; padding: clamp(1.6rem, 3vw, 2.2rem); margin: 0; display: grid; grid-template-columns: 1fr; gap: .85rem; }
.price-list li { position: relative; padding-left: 1.9rem; }
.price-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 1.35rem; height: 1.35rem; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.price-foot { text-align: center; color: var(--muted); margin-top: 1.6rem; font-size: .98rem; }
.price-foot a { color: var(--accent); font-weight: 700; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.about-mark svg { width: 84px; height: 84px; }
.about-mark rect { fill: var(--accent); } .about-mark path { stroke: #fff; stroke-width: 9; stroke-linecap: round; fill: none; }
.about-copy { max-width: 40rem; }
.about-copy p { color: var(--muted-d); font-size: 1.12rem; margin-top: 1rem; }
.about-copy p:first-of-type { margin-top: 1.2rem; }
.about-sign { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: #fff !important; margin-top: 1.4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.contact-copy p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; max-width: 28rem; }
.contact-methods { display: grid; gap: .9rem; margin-top: 1.8rem; }
.contact-line { display: flex; align-items: center; gap: .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); transition: transform .15s var(--ease); }
.contact-line:hover { transform: translateY(-2px); }
.cl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 1.2rem; flex: none; }
.contact-line strong { font-size: 1.02rem; }

.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.3rem); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .88rem; }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; background: var(--paper); color: var(--ink); transition: border-color .15s, background .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.form-status { font-weight: 700; padding: .8rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.form-status[hidden] { display: none; }
.form-fine { font-size: .88rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-d); padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.8rem; }
.footer-inner { display: grid; gap: 1.6rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line-d); }
.footer-brand .brand-name { color: #fff; font-size: 1.4rem; } .footer-brand .brand-name em { color: #8ea0ff; }
.footer-brand p { margin-top: .6rem; max-width: 22rem; font-size: .96rem; }
.footer-contact { display: grid; gap: .35rem; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact a:hover { color: #8ea0ff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-top: 1.4rem; font-size: .85rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } .browser, .phone { transform: none; } }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 680px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .price-list { grid-template-columns: repeat(2, 1fr); }
  .contact-methods { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .nav-links { display: flex; } .nav-cta { display: inline-flex; } .nav-toggle { display: none; } .nav-drawer { display: none !important; }
  .hero-grid { grid-template-columns: 1.12fr .88fr; }
  .browser img { height: 400px; }
  .phone { width: 150px; right: -14px; } .phone img { height: 300px; }
  .about-grid { grid-template-columns: auto 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-card--live { grid-column: span 1; }
}
@media (min-width: 900px) {
  /* feature 2x2 stays; make work first card span for emphasis */
  .work-card:first-child .work-shot { height: 230px; }
}
