/* Inkline website, "modern" variant. Loaded after style.css and overrides it.
   Same brand (ink, highlighter, lab teal, Atkinson + Caveat), but: calm plain background,
   bigger type, a glowing hero with overlapping phones, a bento feature grid with icons,
   a stats strip and gentle scroll reveals (off for people who prefer reduced motion). */

:root {
  --glow-a: rgba(255, 228, 92, .55);
  --glow-b: rgba(35, 121, 122, .28);
  --tile: #FFFFFF;
  --tile-2: #F3F5F9;
  --tile-ink: #1F2B47;
  --t1-mix: 38%;
  --shadow: 0 1px 2px rgba(20, 30, 50, .05), 0 12px 32px rgba(20, 30, 50, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --glow-a: rgba(255, 228, 92, .18); --glow-b: rgba(94, 194, 191, .18);
    --tile: #1B1F27; --tile-2: #20252F; --tile-ink: #2A3550; --t1-mix: 12%;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --glow-a: rgba(255, 228, 92, .18); --glow-b: rgba(94, 194, 191, .18);
  --tile: #1B1F27; --tile-2: #20252F; --tile-ink: #2A3550; --t1-mix: 12%;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
}

/* Plain paper instead of graph paper everywhere; the grid only fades in behind the hero. */
body.modern { background-image: none; }
.modern .wrap { max-width: 1160px; }
.modern .narrow { max-width: 760px; }
.modern .site-header { border-bottom-color: transparent; }
.modern h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); letter-spacing: -.025em; }
.modern .eyebrow { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lab); margin: 0 0 10px; }

/* hero */
.modern .hero-band { position: relative; overflow: hidden; }
.modern .hero-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}
.modern .hero { padding-block: 72px 56px; grid-template-columns: 1.05fr .95fr; gap: 48px; }
.modern .hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); letter-spacing: -.035em; line-height: 1.05; }
.modern .hero .lead { font-size: 1.22rem; }
.modern .hero .badges li { background: var(--surface); box-shadow: var(--shadow); border: 0; }
.modern .hero-phones { position: relative; display: block; min-height: 560px; isolation: isolate; }
.modern .hero-phones::before {
  content: ""; position: absolute; inset: 6% 0 0 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle at 35% 40%, var(--glow-a), transparent 60%), radial-gradient(circle at 70% 65%, var(--glow-b), transparent 60%);
  filter: blur(30px);
}
.modern .hero-phones .phone { position: absolute; width: 250px; border-width: 7px; border-radius: 30px; box-shadow: 0 30px 60px rgba(20, 30, 50, .25); }
.modern .hero-phones .phone:nth-child(1) { left: 6%; top: 0; z-index: 2; margin: 0; }
.modern .hero-phones .phone:nth-child(2) { right: 4%; top: 70px; margin: 0; transform: rotate(5deg); opacity: .97; }
@media (max-width: 820px) {
  .modern .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .modern .hero-phones { min-height: 0; height: 120vw; max-height: 520px; }
  .modern .hero-phones .phone { width: 46%; }
}

/* stats strip */
.modern .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 24px; padding: 0; list-style: none; }
.modern .stats li { background: var(--surface); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); margin: 0; }
.modern .stats b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -.03em; line-height: 1.1; }
.modern .stats span { color: var(--pencil); font-size: .95rem; }
@media (max-width: 760px) { .modern .stats { grid-template-columns: 1fr 1fr; } }

/* sections */
.modern .block { padding-block: 56px 8px; }
.modern .block > h2:first-child, .modern .block > .eyebrow + h2 { margin-top: 0; }

/* bento grid */
.modern .bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.modern .bento .card {
  position: relative; overflow: hidden; border: 0; border-radius: 24px; padding: 24px 24px 22px;
  background: var(--tile); box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.modern .bento .card:hover { transform: translateY(-3px); }
.modern .bento .card h3 { font-size: 1.22rem; margin: 14px 0 6px; }
.modern .bento .card p { color: var(--pencil); }
.modern .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tile-2); color: var(--lab); flex: none; }
.modern .ico svg { width: 26px; height: 26px; }
.modern .bento .t1 { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, color-mix(in srgb, var(--hl) var(--t1-mix), var(--tile)) 0%, var(--tile) 55%); }
.modern .bento .t1 .ico { background: var(--hl); color: var(--hl-ink); }
.modern .bento .t2 { grid-column: span 2; }
.modern .bento .t8 { grid-column: 1 / -1; min-height: 0; background: var(--tile-ink); color: #fff; }
.modern .bento .t8 p { color: rgba(255, 255, 255, .78); }
.modern .bento .t8 .ico { background: rgba(255, 255, 255, .1); color: var(--hl); }
.modern .bento .t7 { grid-column: span 2; }
@media (max-width: 960px) {
  .modern .bento { grid-template-columns: 1fr 1fr; }
  .modern .bento .t1 { grid-row: span 1; }
}
@media (max-width: 600px) {
  .modern .bento { grid-template-columns: 1fr; }
  .modern .bento .card { grid-column: auto; }
}

/* little pictures inside the big tiles */
.modern .conv { margin-top: auto; padding-top: 18px; font-family: var(--f-mono); font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: -.02em; line-height: 1.2; }
.modern .conv span { color: var(--lab); padding-inline: .3em; }
.modern .conv + .chips { margin-top: 0; }
.modern .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.modern .chips span { font-family: var(--f-mono); font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }
.modern .chips span.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.modern .mini { margin-top: auto; padding-top: 12px; width: 100%; height: auto; color: var(--ink); }
.modern .mini .home { stroke: currentColor; }
.modern .mini .lab { fill: var(--lab); }
.modern .mini .tgt { stroke: var(--pencil); }

/* values (Yours / Neutral / Kind / Ready) */
.modern .cards.four .card { border: 0; border-radius: 22px; box-shadow: var(--shadow); padding: 22px; }
.modern .cards.four .card h3::before { content: attr(data-n); display: block; font-family: var(--f-hand); font-size: 2.2rem; color: var(--lab); line-height: 1; margin-bottom: 6px; }

/* gallery */
.modern .shots { gap: 22px; padding: 16px 4px 24px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.modern .shots .phone { width: 240px; border-radius: 28px; }
.modern .shots-btn { border: 0; box-shadow: var(--shadow); }

/* plan chips and FAQ */
.modern .badges li { border-radius: 99px; }
.modern details { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 4px 20px; margin-bottom: 10px; }
.modern summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.modern summary::-webkit-details-marker { display: none; }
.modern summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--lab); }
.modern details[open] summary::after { content: "−"; }
.modern details p { color: var(--pencil); }

/* closing call to action */
.modern .cta { margin: 64px 0 8px; border-radius: 28px; padding: 44px 32px; text-align: center; background: #1F2B47; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.modern .cta::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 228, 92, .35), transparent 65%); z-index: -1; }
.modern .cta h2 { margin: 0 0 10px; color: #fff; }
.modern .cta p { color: rgba(255, 255, 255, .8); margin-inline: auto; max-width: 52ch; }
.modern .cta .actions { justify-content: center; }
.modern .cta .btn { background: #FFE45C; color: #14171D; }
.modern .cta .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.modern .cta .soon { color: rgba(255, 255, 255, .7); }

/* article pages get softer boxes */
.modern .toc, .modern .note, .modern table { border-radius: 18px; }
.modern .card { border-radius: 20px; }

/* scroll reveal: only where supported, never for reduced motion; content is visible by default */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .modern .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) { .modern .bento .card { transition: none; } }
.modern .bento .card .conv { color: var(--ink); }
