/* Younan Digital — site styles (Paper & Ink, v2) */
:root {
  --paper: #F3F0E8;
  --paper-hi: #FBFAF6;
  --ink: #151515;
  --ink-2: #2E2C28;
  --ink-3: #3D3A35;
  --muted: #55524B;
  --line-soft: #CFC9BB;
  --accent: #4F46E5;
  --accent-dark: #4338CA;
  --accent-light: #A5B4FC;
  --radius: 3px;
  --wrap: 1200px;
  --gutter: 20px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hidden { display: none !important; }
.overflow-hidden { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wide { font-stretch: 118%; }
.muted { color: var(--muted); }
.accent { color: var(--accent-dark); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--ink); }
.site-header .bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 900px) { .site-header .bar { height: 76px; } }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name { display: block; font-size: 17px; font-weight: 750; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1; white-space: nowrap; }
@media (min-width: 900px) { .brand svg { width: 38px; height: 38px; } .brand-name { font-size: 19px; } .brand-sub { font-size: 12px; } }
.nav { display: none; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; flex-shrink: 0; }
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: inline-flex; }
@media (min-width: 900px) { .menu-btn { display: none; } }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline-flex; } }
.mobile-nav { border-top: 1px solid var(--ink); padding: 8px var(--gutter) 20px; }
.mobile-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; font-weight: 500; text-decoration: none; }
.mobile-nav a:last-child { border-bottom: 0; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--ink); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-u { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link-u:hover { color: var(--accent-dark); }
.link-plain { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Type ---------- */
.kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.kicker::before { content: ""; width: 9px; height: 9px; background: var(--accent); flex-shrink: 0; }
.kicker .rule { flex: 1; border-top: 1px solid var(--ink); display: none; }
@media (min-width: 768px) { .kicker { font-size: 15px; } .kicker .rule { display: block; } }
.display { font-size: clamp(42px, 7.2vw, 88px); line-height: .97; font-weight: 800; font-stretch: 118%; letter-spacing: -0.035em; }
.display-2 { font-size: clamp(36px, 6vw, 68px); line-height: 1; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; }
.h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; }
.h3 { font-size: 21px; line-height: 1.2; font-weight: 700; font-stretch: 110%; letter-spacing: -0.01em; }
.u-mark { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .085em; text-underline-offset: .11em; text-decoration-skip-ink: none; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 680px; }
@media (min-width: 768px) { .lede { font-size: 21px; } }
.label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.num { font-size: 14px; font-weight: 700; font-stretch: 118%; color: var(--accent-dark); }
.body-s { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
@media (min-width: 768px) { .body-s { font-size: 16px; } }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 0; }
@media (min-width: 900px) { .hero { padding-top: 56px; } }
.hero-grid { display: grid; gap: 36px; margin-top: 28px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: 48px; align-items: start; margin-top: 40px; } }
.hero-main { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 900px) { .hero-main { gap: 36px; } }
.cta-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.cta-row .link-u { align-self: center; padding: 10px 0; }
@media (min-width: 560px) { .cta-row { flex-direction: row; align-items: center; gap: 32px; } .cta-row .link-u { align-self: auto; } }

.ticket { border: 1px solid var(--ink); background: var(--paper-hi); }
@media (min-width: 1000px) { .ticket { margin-top: 12px; } }
.ticket-head { display: flex; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--ink); }
.ticket-rows { padding: 4px 18px; }
.ticket-row { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; font-size: 15px; border-bottom: 1px dotted var(--muted); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row span:first-child { font-weight: 600; }
.ticket-row span:last-child { margin-left: auto; font-weight: 700; white-space: nowrap; }
.ticket-foot { padding: 13px 18px; border-top: 1px solid var(--ink); font-size: 14px; line-height: 1.45; color: var(--ink-2); }

.points { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--ink); }
.point { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.point:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; margin-top: 64px; }
  .point { border-bottom: 0; padding: 28px 0 0; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0 0; }
@media (min-width: 900px) { .section { padding-top: 112px; } }
.section-head { border-top: 4px solid var(--ink); padding-top: 16px; display: grid; gap: 14px; margin-bottom: 32px; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 2fr 6fr 3fr; gap: 24px; align-items: end; margin-bottom: 44px; }
  .section-head .label { align-self: start; padding-top: 8px; }
}

/* Demo cards */
.demos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 760px) { .demos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.demo { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--ink); background: var(--paper-hi); transition: transform .15s; }
.demo:hover { transform: translateY(-3px); }
.demo-img { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--ink); background: var(--line-soft); }
.demo-img img { width: 100%; height: 100%; object-fit: cover; }
.demo-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.demo-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line-soft); }
.demo:hover .demo-foot span:last-child { color: var(--accent-dark); }

/* Steps */
.steps { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.step-n { font-size: 40px; line-height: 1; font-weight: 800; font-stretch: 118%; color: var(--accent); grid-row: span 2; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; border-top: 0; }
  .step { grid-template-columns: 1fr; border-top: 1px solid var(--ink); border-bottom: 0; padding-top: 24px; gap: 12px; }
  .step-n { font-size: 64px; grid-row: auto; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--ink); }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { padding: 28px 22px; display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--ink); }
.plan:last-child { border-bottom: 0; }
@media (min-width: 1000px) { .plan { padding: 32px; border-bottom: 0; border-right: 1px solid var(--ink); } .plan:last-child { border-right: 0; } }
.plan-dark { background: var(--ink); color: var(--paper); }
.plan-dark .label { color: var(--accent-light); }
.plan-dark .muted { color: #C9C4B8; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price strong { font-size: clamp(48px, 6vw, 60px); line-height: 1; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; }
.plan-list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 11px; font-size: 15px; line-height: 1.4; }
.plan-dark .plan-list { border-top-color: #55524B; }
.plan-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan-list li::before { content: ""; width: 12px; height: 2px; background: currentColor; margin-top: .6em; }
.plan-list li.no { color: var(--muted); }
.plan-list li.no::before { background: var(--muted); }
.plan-list li.hl { color: var(--accent-light); font-weight: 600; }
.plan .btn { margin-top: auto; }
.plan-dark .btn-accent:hover { background: #fff; color: var(--ink); border-color: #fff; }
.plan-dark .btn-line { color: var(--paper); border-color: var(--paper); }
.footnote { margin-top: 20px; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 900px; }

/* Contact block */
.contact { margin-top: 72px; background: var(--ink); color: var(--paper); }
@media (min-width: 900px) { .contact { margin-top: 112px; } }
.contact .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; gap: 28px; }
@media (min-width: 900px) { .contact .wrap { grid-template-columns: 7fr 5fr; gap: 56px; align-items: end; padding-top: 80px; padding-bottom: 80px; } }
.contact .lede { color: #D6D1C4; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-links .btn { justify-content: space-between; border-color: var(--paper); color: var(--paper); background: transparent; }
.contact-links .btn:hover { background: var(--paper); color: var(--ink); }
.contact-links .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-links .btn-primary:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #BDB8AC; border-top: 1px solid #3A3833; font-size: 14px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 900px) { .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { text-decoration: none; padding: 6px 0; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer.light { background: var(--paper); color: var(--muted); border-top: 1px solid var(--ink); }
.site-footer.light .footer-links a:hover { color: var(--ink); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .field-label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: #FFFEFA; color: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font: inherit; font-size: 16px; line-height: 1.4;
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: #8C877C; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.file { padding: 14px; border: 1px dashed var(--ink); border-radius: var(--radius); background: #FFFEFA; }
.file input { width: 100%; font: inherit; font-size: 14px; }
.file input::file-selector-button { font: inherit; font-size: 14px; font-weight: 600; margin-right: 12px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); cursor: pointer; }
.file .hint { margin-top: 8px; }
.grid-2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.fieldset-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.fieldset-head .num { font-size: 15px; }
.fieldset-head h2 { font-size: 20px; font-weight: 700; font-stretch: 110%; }
.checks { display: grid; gap: 10px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #FFFEFA; cursor: pointer; font-size: 15px; }
.check:hover { border-color: var(--ink); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.turnstile-wrap { display: flex; justify-content: center; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.box { border: 1px solid var(--ink); background: var(--paper-hi); padding: 18px; }
.box-accent { border-left: 4px solid var(--accent); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(21, 21, 21, .55); padding: 0; }
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal-card { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--paper); border: 1px solid var(--ink); padding: 22px 20px 26px; }
@media (min-width: 640px) { .modal-card { padding: 30px 32px 32px; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 22px; }

/* ---------- Simple page layouts ---------- */
.page-head { padding: 40px 0 32px; border-bottom: 1px solid var(--ink); }
@media (min-width: 900px) { .page-head { padding: 72px 0 48px; } }
.page-head .display-2 { margin-top: 20px; max-width: 16ch; }
.page-head .lede { margin-top: 20px; }
.narrow { max-width: 820px; }

.doc { padding: 16px 0 72px; }
.doc-section { display: grid; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.doc-section:last-child { border-bottom: 0; }
@media (min-width: 900px) { .doc-section { grid-template-columns: 220px 1fr; gap: 40px; padding: 36px 0; } }
.doc-section h2 { font-size: 20px; line-height: 1.25; font-weight: 700; font-stretch: 110%; }
.doc-section h3 { font-size: 16px; font-weight: 700; margin-top: 18px; }
.doc-body { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.doc-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.doc-body strong { color: var(--ink); }
.doc-body .small { font-size: 14px; color: var(--ink-3); }

.gate { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--gutter); gap: 10px; }
.gate h1 { font-size: 26px; font-weight: 800; font-stretch: 115%; letter-spacing: -0.02em; }
.gate p { color: var(--muted); max-width: 440px; }
