/* Shared stylesheet for the Ardenfold and ShareLens sites.
   The <body> class picks the palette: theme-ardenfold or theme-sharelens. */

:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --line: #DCE2E8;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(15, 23, 38, .05), 0 8px 24px rgba(15, 23, 38, .06);
}

.theme-ardenfold {
  --ink: #14233D;          /* Arden Navy */
  --muted: #4A5F7E;        /* slate, darkened for small-text contrast */
  --accent: #C2953A;       /* Fold Gold: lines and small highlights */
  --accent-on-dark: #DDB560;
  --btn: #14233D;
  --btn-hover: #1E3357;
  --btn-text: #FFFFFF;
  --link: #2F4F7F;
  --dark: #0F1726;         /* Night */
  --dark-text: #C9D2DE;
  --tint: #E9EDF3;
}

.theme-sharelens {
  --ink: #0E2A3B;          /* Deep Ink */
  --muted: #51646F;        /* Slate Grey, darkened slightly for contrast */
  --accent: #0F9E86;       /* Lens Teal: icons, highlights */
  --accent-on-dark: #2CC7A8;
  --btn: #0B7A67;          /* teal deep enough for white text (AA) */
  --btn-hover: #09695A;
  --btn-text: #FFFFFF;
  --link: #0B7A67;
  --dark: #14233D;         /* Arden Navy footer */
  --dark-text: #C9D2DE;
  --tint: #E3F4F0;
  --gold: #C2953A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem; }
.nav a:hover { color: var(--link); }
.nav .btn { color: var(--btn-text); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .brand img { height: 30px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  background: var(--btn); color: var(--btn-text);
  border: 2px solid var(--btn); border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
@media (max-width: 760px) { section { padding: 64px 0; } }
.section--white { background: var(--surface); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: #FFFFFF; }
.section--dark p { color: var(--dark-text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .8125rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section--dark .eyebrow { color: var(--accent-on-dark); }
.section--dark .eyebrow::before { background: var(--accent-on-dark); }
.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.section-head { max-width: 46rem; margin-bottom: 44px; }
.section-head p { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; position: relative; overflow: hidden; }
@media (max-width: 760px) { .hero { padding: 56px 0 72px; } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero-note { margin-top: 16px; font-size: .95rem; color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card h3 { color: var(--ink); }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--accent); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.card--rule { border-top: 3px solid var(--accent); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid #BFC9D3; border-radius: var(--radius-sm);
  background: #FFFFFF; color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--btn); flex: none; }
.form-small { font-size: .875rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status:empty { display: none; }
.form-status--ok { background: #E3F4EC; color: #145C3A; }
.form-status--note { background: #FFF6E5; color: #6B4A0C; border: 1px solid #F0D9A8; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font: 600 1.0625rem/1.4 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 56px 0 40px; font-size: .95rem; }
.site-footer a { color: #FFFFFF; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-top img { height: 34px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 24px; display: grid; gap: 8px; }
.footer-legal p { margin: 0; }
.disclaimer { color: #FFFFFF; }

/* ---------- Simple pages (privacy) ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }

/* =========================================================
   Ardenfold-specific pieces
   ========================================================= */
.af-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.af-hero h1 .gold { color: var(--accent); }
.af-peak { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.af-peak::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #E9EDF3 0%, rgba(233, 237, 243, 0) 70%);
}
.af-peak img { position: relative; width: 78%; margin: 11% auto 0; }
@media (max-width: 900px) { .af-peak { max-width: 260px; } }

.product-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow: hidden; padding: 0;
  border-radius: 20px;
}
@media (max-width: 860px) { .product-card { grid-template-columns: 1fr; } }
.product-card .pc-body { padding: 40px; }
@media (max-width: 640px) { .product-card .pc-body { padding: 28px; } }
.product-card .pc-body img { height: 44px; width: auto; margin-bottom: 22px; }
.product-card .pc-art { background: linear-gradient(150deg, #E3F4F0 0%, #CFEDE6 100%); display: grid; place-items: center; padding: 40px; }
.product-card .pc-art img { width: 160px; height: 160px; }
.pill { display: inline-block; font-size: .8125rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.pill--teal { background: #E3F4F0; color: #0A5E50; }
.btn--teal { background: #0B7A67; border-color: #0B7A67; }
.btn--teal:hover { background: #09695A; border-color: #09695A; }

.name-story { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
@media (max-width: 760px) { .name-story { grid-template-columns: 1fr; gap: 28px; } }
.name-parts { display: flex; gap: 14px; flex-wrap: wrap; }
.name-part { border: 1px solid rgba(221, 181, 96, .45); border-radius: var(--radius); padding: 18px 22px; min-width: 150px; }
.name-part strong { display: block; font: 700 1.6rem/1.1 var(--font-head); color: var(--accent-on-dark); }
.name-part span { font-size: .9rem; color: var(--dark-text); }

.founder { display: flex; gap: 20px; align-items: flex-start; }
.avatar {
  flex: none; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #FFFFFF;
  font: 700 1.2rem/1 var(--font-head); border: 2px solid var(--accent);
}
.founder .role { color: var(--muted); font-size: .95rem; font-weight: 600; margin-bottom: 8px; }

/* =========================================================
   ShareLens-specific pieces
   ========================================================= */
.sl-hero { background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%); }
.sl-hero h1 em { font-style: normal; color: var(--btn); }
.phone {
  justify-self: center; width: 100%; max-width: 320px; aspect-ratio: 9 / 15.5;
  background: #0E2A3B; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px rgba(14, 42, 59, .22);
}
.phone-screen { height: 100%; background: var(--bg); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; }
.phone-top { background: #FFFFFF; padding: 22px 18px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.phone-top img { width: 28px; height: 28px; }
.phone-top b { font: 700 1rem/1 var(--font-head); }
.phone-body { padding: 14px; display: grid; gap: 10px; font-size: .82rem; line-height: 1.5; }
.p-card { background: #FFFFFF; border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.p-card .k { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.p-card p { margin: 0; color: var(--ink); }
.p-bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 8px; }
.p-bar span { display: block; height: 100%; width: 62%; border-radius: 4px; background: var(--accent); }
.p-chip { display: inline-block; background: var(--tint); color: #0A5E50; border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 600; margin: 6px 6px 0 0; }
.p-urdu { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; direction: rtl; text-align: right; font-size: .9rem; line-height: 2; }
.phone-caption { text-align: center; font-size: .8125rem; color: var(--muted); margin-top: 14px; }

.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.who-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.who-list .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: #0A5E50; display: grid; place-items: center; font: 700 1rem/1 var(--font-head); }

.plan { display: flex; flex-direction: column; }
.plan .pill { align-self: flex-start; margin-bottom: 14px; }
.plan--later { background: transparent; border-style: dashed; box-shadow: none; }
.plan--later .pill { background: #EFE6D3; color: #6B4A0C; }
.plans-note { margin-top: 24px; color: var(--muted); }

.waitlist-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .waitlist-wrap { grid-template-columns: 1fr; gap: 28px; } }
.waitlist-wrap .card { padding: 32px; }
@media (max-width: 640px) { .waitlist-wrap .card { padding: 22px; } }

/* Honeypot field for bots: hidden from people and screen readers */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
