/* Penlumi website. Paper and ink, with the app's orange (#FFA940, src/theme.ts) for fills only: orange text on paper
   fails contrast, so links are ink with an underline. The dark band is the app's own background (#0d0d0f).
   Light theme only. System fonts, no web fonts, no trackers, no JS needed.
   Layout and motion follow the rival AR drawing sites (docs: RIVAL-SITES-20261117.md); each number below names its source. */

:root {
  color-scheme: light;
  --paper: #FAF7F0;
  --paper-deep: #F0EBDF;
  --ink: #1B1A17;
  --ink-soft: #45423C;
  --ink-muted: #6A665E;
  --orange: #FFA940;
  --orange-soft: #FFE7C7;
  --night: #0D0D0F;
  --night-card: #1C1C20;
  --border: #DDD6C6;
  --white: #FFFFFF;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.375rem, 1.5rem + 3.6vw, 3.875rem);
  --fs-title: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --fs-heading: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --fs-caption: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --r-md: 14px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4.5vw, 32px);
  --maxw: 1120px;
  --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--white); padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.top nav { display: flex; gap: 20px; font-size: var(--fs-caption); font-weight: 600; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* hero */
.hero { padding: clamp(24px, 5vw, 56px) 0 var(--section); }
.hero .wrap { display: grid; gap: clamp(32px, 6vw, 64px); align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.eyebrow { display: inline-block; background: var(--orange-soft); color: var(--ink); font-weight: 700; font-size: var(--fs-caption); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
h1 { font-size: var(--fs-display); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-soft); margin-top: 18px; max-width: 34em; }
.get { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.soon { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); font-weight: 700; border-radius: 999px; padding: 14px 22px; }
.soon svg { width: 20px; height: 20px; }
.get small { color: var(--ink-muted); font-size: var(--fs-caption); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges[hidden] { display: none; }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 24px); }
.phone {
  width: min(46%, 260px);
  border-radius: 30px;
  background: var(--night);
  padding: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 18px 40px -16px rgba(27,26,23,.45);
}
.phone img { border-radius: 23px; width: 100%; aspect-ratio: 540 / 1122; object-fit: cover; background: var(--night-card); }
.phones .phone:first-child { transform: translateY(-28px); }

/* sections */
section { padding: var(--section) 0; }
.band { background: var(--paper-deep); }
.night { background: var(--night); color: #F4F2EC; }
.night a { color: #F4F2EC; }
.night .lead, .night p { color: #C9C6BE; }
h2 { font-size: var(--fs-title); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: var(--fs-heading); line-height: 1.3; font-weight: 750; }
.intro { max-width: 40em; }
.intro p { margin-top: 14px; color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.45; }

.cards { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.card p { color: var(--ink-soft); margin-top: 8px; }
.card .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); font-weight: 800; margin-bottom: 14px; }

.split { display: grid; gap: clamp(28px, 6vw, 72px); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split.flip .media { order: 2; } }
.split .media { display: flex; justify-content: center; }
.split .media .phone { width: min(70%, 290px); }
.points { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.night .points li { color: #C9C6BE; }
.note { margin-top: 20px; font-size: var(--fs-caption); color: var(--ink-muted); }
.night .note { color: #A5A29A; }

/* features: a phone frame per feature with a caption (Drawsy "Features", AR Drawing "AR Drawing Features") */
.features { display: grid; gap: 20px; margin-top: 36px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 980px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 16px 20px; }
.feature .phone { width: min(78%, 200px); margin: 0 auto 18px; border-radius: 24px; padding: 6px; }
.feature .phone img { border-radius: 19px; }
.feature p { color: var(--ink-soft); margin-top: 6px; font-size: var(--fs-caption); line-height: 1.5; }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } .feature { display: grid; grid-template-columns: 112px 1fr; gap: 0 16px; align-items: center; }
  .feature .phone { width: 112px; margin: 0; grid-row: span 2; } .feature h3 { align-self: end; } .feature p { align-self: start; } }

/* how it works: numbered steps (Drawsy 4 steps, ArtEasy "How to Use") */
.steps { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.steps .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 719px) { .steps { gap: 10px; } .steps li { display: grid; grid-template-columns: 36px 1fr; gap: 2px 14px; padding: 16px 18px; }
  .steps .num { grid-row: span 2; margin: 0; } .steps p { margin-top: 0; } }

/* what you can draw: the app's own guides (Drawsy gallery, ArtEasy templates) */
.gallery { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery li { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 10px 14px; display: grid; gap: 2px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 8px; background: var(--white); margin-bottom: 8px; }
.gallery b { font-weight: 750; }
.gallery span { color: var(--ink-muted); font-size: var(--fs-caption); }

.narrow { max-width: 820px; }
.more { margin-top: 22px; color: var(--ink-soft); }

/* closing call (Drawsy, AR Drawing, SketchAR repeat the store button at the end) */
.closing { text-align: center; }
.closing .get { justify-content: center; }
.soon.light { background: var(--white); color: var(--ink); }

/* footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--border); font-size: var(--fs-caption); color: var(--ink-muted); }
footer .wrap { display: grid; gap: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
footer nav a { color: var(--ink); }

/* legal and support pages */
.doc { padding: clamp(16px, 4vw, 40px) 0 var(--section); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: var(--fs-title); line-height: 1.15; }
.doc .updated { color: var(--ink-muted); font-size: var(--fs-caption); margin-top: 8px; }
.doc h2 { font-size: var(--fs-heading); line-height: 1.3; margin-top: 36px; }
/* numbered legal headings, as Drawsy, AR Drawing and ArtEasy number theirs */
.legal { counter-reset: sec; }
.legal h2::before { counter-increment: sec; content: counter(sec) ". "; }
.doc p { margin-top: 12px; color: var(--ink-soft); }
.doc .lang { margin-top: 18px; font-size: var(--fs-caption); color: var(--ink-muted); }
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; line-height: 1; color: var(--ink-muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; margin-top: 0; }
.mail { display: inline-block; margin-top: 18px; background: var(--orange); color: var(--ink); text-decoration: none; font-weight: 800; border-radius: 999px; padding: 14px 24px; }
.mail:hover { background: #FFB95E; }

/* motion. CSS only; nothing moves when the phone or PC asks for reduced motion (5 of 6 rival sites honour it).
   Entrance: AR Drawing's fadeInUp, .7s cubic-bezier(.22,.65,.2,1). Scroll reveal: Drawsy's 750ms reveal, driven by
   the scroll timeline where the browser has it (otherwise content is simply shown). Hover: Drawsy .15s ease transform,
   .25s box-shadow. FAQ: SketchAR's accordion open, .2s ease. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero .hero-text > *, .hero .phones { animation: rise .7s cubic-bezier(.22,.65,.2,1) both; }
  .hero .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero .hero-text > :nth-child(4) { animation-delay: .18s; }
  .hero .phones { animation-delay: .24s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
  .feature, .steps li, .gallery li, .soon, .mail, .faq details { transition: transform .15s ease, box-shadow .25s ease, background-color .2s ease; }
  @media (hover: hover) {
    .feature:hover, .steps li:hover, .gallery li:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(27,26,23,.45); }
  }
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .2s ease, content-visibility .2s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
