@font-face {
  font-family: "IRANSans";
  src: url("../assets/IRANSans-FaNum.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Base and section tokens match Android Theme.java; primary actions use the logo yellow. Warehouse/product and booklet accents
   stay distinct in both themes; reports keep neutral colors. Light is the default. */
:root {
  color-scheme: light;
  --page: #ECEEF0;
  --surface: #F5F6F7;
  --surface-muted: #E7E9EC;
  --line: #D5D9DE;
  --text: #111827;
  --text-secondary: #293342;
  --muted: #515B69;
  --accent: #F5C518;
  --on-accent: #242015;
  --accent-text: #8A6500;
  --booklet: #8B5E3C;
  --warehouse: #7037B6;
  --footer: #E2E5E8;
  --shadow: 0 6px 24px #11182704;
  --art-circle: #F0F0F0;
  --art-dot: #E5E7EB;
  --book-cover: #D9AC83;
  --book-pages: #C39167;
  --book-label: #C99970;
  --book-lines: #8B5E3C;
  --box-top: #CDB4E9;
  --box-front: #B796DF;
  --box-left: #9A70CA;
  --box-tape: #E2D4F2;
  --box-tape-front: #D2BDE9;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #212121;
  --accent-text: #F5C518;
  --surface: #2B2B2B;
  --surface-muted: #303030;
  --line: #414141;
  --text: #F9FAFB;
  --text-secondary: #E5E7EB;
  --muted: #9CA3AF;
  --booklet: #D9AC83;
  --warehouse: #C49AF0;
  --footer: #2B2B2B;
  --shadow: 0 6px 24px #0000000B;
  --art-circle: #363636;
  --art-dot: #414141;
  --book-cover: #D9AC83;
  --book-pages: #AE7D52;
  --book-label: #BF8E63;
  --book-lines: #734B2D;
  --box-top: #C49AF0;
  --box-front: #A37AD0;
  --box-left: #8058AE;
  --box-tape: #DEBEFA;
  --box-tape-front: #CDA6F1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: "IRANSans", sans-serif; font-size: 16px; font-weight: 500; line-height: 1.9; background: var(--page); color: var(--text); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button, input { color: inherit; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; right: 20px; z-index: 30; padding: 12px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-size: 20px; font-weight: 700; line-height: 1.4; }
.brand { transition: color .18s; }
.brand:hover, .brand:focus-visible { color: var(--accent-text); }
.brand img { object-fit: contain; filter: none; opacity: 1; }
.main-navigation { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-secondary); }
.main-navigation a { padding: 9px 14px; border-radius: 11px; transition: color .18s, background .18s; }
.main-navigation a:hover, .main-navigation a:focus-visible { color: var(--accent-text); background: var(--surface-muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: transparent; color: var(--text-secondary); }
.icon-button:hover { background: var(--surface-muted); }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 11px 25px; border-radius: 12px; font-weight: 700; font-size: 14px; line-height: 1.6; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; }
.button svg { flex-shrink: 0; }
.button-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.button-primary:hover { box-shadow: 0 0 0 4px #F5C51830; }
.button-secondary { background: transparent; color: var(--accent-text); border-color: var(--accent); border-width: 2px; }
.button-secondary:hover { box-shadow: 0 0 0 4px #F5C51830; }
.header-login { min-height: 44px; padding: 9px 18px; font-size: 12px; }
.header-login svg { width: 17px; height: 17px; }
.hero-section { padding-top: 48px; }
.hero-banner { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); min-height: 450px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 44px 70px 66px; gap: 20px; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: block; color: var(--muted); font-size: 14px; letter-spacing: 0; margin-bottom: 16px; }
.hero-copy h1 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.7; font-weight: 700; letter-spacing: -.7px; min-height: 0; max-width: 530px; text-wrap: balance; }
.hero-copy p { font-size: 16px; color: var(--text-secondary); max-width: 480px; min-height: 0; margin-top: 12px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.artwork-wrap { display: flex; align-items: center; justify-content: center; min-width: 0; }
.hero-artwork { width: 100%; max-width: 460px; height: auto; }
.art-shadow { fill: #000; opacity: .055; }
:root[data-theme="dark"] .art-shadow { opacity: .16; }
.art-circle { fill: var(--art-circle); }
.art-dot { fill: var(--art-dot); }
.art-violet { fill: var(--warehouse); }
.box-top { fill: var(--box-top); }
.box-left { fill: var(--box-left); }
.box-front { fill: var(--box-front); }
.box-tape { fill: var(--box-tape); }
.box-tape-front { fill: var(--box-tape-front); }
.box-mark { stroke: var(--warehouse); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.book-cover { fill: var(--book-cover); }
.book-pages { fill: var(--book-pages); }
.book-spine { stroke: var(--book-lines); opacity: .3; stroke-width: 2; }
.book-stitch { stroke: var(--book-lines); opacity: .22; stroke-width: 1; stroke-dasharray: 2 3; }
.book-label { fill: var(--book-label); stroke: var(--book-lines); stroke-opacity: .25; }
.book-lines { stroke: var(--book-lines); stroke-width: 5; stroke-linecap: round; }
.book-ribbon { fill: var(--book-lines); }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); background: var(--surface-muted); z-index: 2; }
.slide-arrow:hover { color: var(--text); }
.slide-previous { right: 20px; }
.slide-previous svg { transform: rotate(180deg); }
.slide-next { left: 20px; }
.slide-controls { position: absolute; inset-inline: 60px; bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.slide-dots { display: flex; justify-content: center; direction: rtl; }
.slide-dots button { width: 30px; height: 30px; display: grid; place-items: center; background: transparent; border-radius: 50%; }
.slide-dots span { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .4; transition: transform .15s; }
.slide-dots .active span { background: var(--accent); opacity: 1; transform: scale(1.2); }
.scroll-cue { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 15px auto 0; color: var(--muted); border-radius: 50%; }
.scroll-cue:hover { color: var(--text); background: var(--surface-muted); }
.introduction { padding-top: 66px; text-align: center; }
.introduction h2 { font-size: 29px; font-weight: 700; line-height: 1.7; }
.introduction > p { color: var(--text-secondary); line-height: 2.2; margin: 20px auto 0; max-width: 660px; font-size: 16px; }
/* Features: alternating copy and lightweight transparent artwork, matching the site themes. */
.features { display: grid; max-width: 1080px; gap: 0; margin: 48px auto 0; scroll-margin-top: 100px; }
.feature { --feature-color: var(--muted); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 70px; padding: 44px 16px; text-align: right; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-booklet { --feature-color: var(--booklet); }
.feature-warehouse { --feature-color: var(--warehouse); }
.feature-warehouse .feature-copy { grid-column: 2; grid-row: 1; }
.feature-warehouse .feature-visual { grid-column: 1; grid-row: 1; }
.feature-heading { display: flex; align-items: center; gap: 16px; }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; flex-shrink: 0; color: var(--feature-color); border-radius: 50%; background: color-mix(in srgb, var(--feature-color) 12%, var(--page)); }
.feature h3 { font-size: 27px; font-weight: 700; line-height: 1.8; }
.feature-description { color: var(--text-secondary); font-size: 16px; line-height: 2.1; margin-top: 14px; }
.feature-list { display: grid; gap: 13px; list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li { display: flex; align-items: center; gap: 13px; font-size: 16px; line-height: 1.9; }
.feature-list-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; color: var(--feature-color); background: color-mix(in srgb, var(--feature-color) 10%, var(--page)); }
.feature-visual { position: relative; isolation: isolate; display: grid; place-items: center; }
.feature-visual::before { content: ""; position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--feature-color) 11%, var(--page)); z-index: -1; }
.feature-visual img { width: 100%; max-width: 410px; height: auto; display: block; transition: transform .3s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature:hover .feature-visual img { transform: translateY(-5px); }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .feature { gap: 32px; padding-inline: 0; }
  .feature h3 { font-size: 24px; }
  .feature-description, .feature-list li { font-size: 15px; }
}
.start-section { padding-top: 76px; padding-bottom: 80px; }
.start-card { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 28px 38px; display: flex; align-items: center; justify-content: space-between; gap: 28px; box-shadow: var(--shadow); }
.start-card h2 { font-size: 22px; line-height: 1.7; }
.start-card p { color: var(--text-secondary); margin-top: 7px; font-size: 14px; }
.start-card .button { min-width: 200px; }
.site-footer { background: var(--footer); border-top: 1px solid var(--line); padding-top: 45px; }
:root:not([data-theme="dark"]) .site-footer { --muted: var(--text-secondary); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; padding-bottom: 42px; }
.brand-footer { font-size: 21px; }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 2.2; margin-top: 17px; }
.footer-main h2 { font-size: 14px; margin-bottom: 17px; font-weight: 700; }
.footer-links { padding-inline: 35px; border-inline: 1px solid var(--line); }
.footer-links button { display: block; background: transparent; padding: 3px 0; color: var(--text-secondary); font-size: 14px; line-height: 2.2; text-align: right; transition: color .18s; }
.footer-links button:hover, .footer-links button:focus-visible { color: var(--accent-text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 22px; font-size: 11px; color: var(--muted); gap: 20px; }
.footer-wordmark { font-size: 18px; letter-spacing: 1px; font-family: Arial, sans-serif; transition: color .18s; }
.notice-dialog { width: min(440px, calc(100% - 40px)); border: 1px solid var(--line); border-radius: 18px; padding: 24px; color: var(--text); background: var(--surface); box-shadow: 0 18px 60px #0003; }
.notice-dialog::backdrop { background: #0008; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dialog-heading h2 { font-size: 18px; }
.notice-dialog p { font-size: 14px; line-height: 2; color: var(--text-secondary); margin-block: 15px 25px; }
.contact-links { display: grid; gap: 12px; margin-bottom: 22px; }
.contact-links[hidden] { display: none; }
.dialog-confirm { width: 100%; }
@media (min-width: 1600px) { .hero-banner { min-height: 475px; } }
@media (max-width: 1050px) {
  .container { width: calc(100% - 48px); }
  .header-inner { gap: 18px; }
  .main-navigation { gap: 8px; font-size: 12px; }
  .brand { font-size: 18px; }
  .hero-banner { padding-inline: 54px; }
  .hero-copy h1 { font-size: 32px; min-height: 110px; }
  .hero-actions .button { padding-inline: 17px; font-size: 12px; }
  .footer-main { gap: 35px; }
  .footer-links { padding-inline: 25px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 100px; }
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 80px; flex-wrap: wrap; column-gap: 8px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand img { width: 44px; height: 44px; }
  .header-actions { gap: 3px; }
  .header-login { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-navigation { display: none; }
  .hero-section { padding-top: 26px; }
  .hero-banner { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 32px 26px 50px; }
  .hero-copy { text-align: center; }
  .eyebrow { font-size: 13px; margin-bottom: 13px; }
  .hero-copy h1 { font-size: 29px; line-height: 1.8; min-height: 104px; margin-inline: auto; max-width: 380px; }
  .hero-copy p { font-size: 14px; margin-inline: auto; min-height: 53px; }
  .hero-actions { justify-content: center; gap: 10px; margin-top: 23px; }
  .hero-actions .button { min-height: 46px; font-size: 12px; padding-inline: 15px; }
  .hero-actions .button svg { width: 18px; }
  .hero-artwork { max-width: 310px; }
  .artwork-wrap { margin-top: 18px; }
  .slide-arrow { top: auto; bottom: 18px; transform: none; width: 32px; height: 32px; }
  .slide-previous { right: 19px; }
  .slide-next { left: 19px; }
  .introduction { padding-top: 35px; }
  .introduction h2 { font-size: 23px; text-wrap: balance; }
  .introduction > p { font-size: 14px; line-height: 2.1; margin-top: 17px; max-width: 460px; }
  .desktop-break { display: none; }
  .features { margin-top: 30px; }
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 34px 0; }
  .feature-copy, .feature-warehouse .feature-copy { grid-column: 1; grid-row: 2; }
  .feature-visual, .feature-warehouse .feature-visual { grid-column: 1; grid-row: 1; width: min(100%, 270px); margin-inline: auto; }
  .feature-heading { gap: 12px; }
  .feature-icon { width: 52px; height: 52px; }
  .feature-icon svg { width: 29px; height: 29px; }
  .feature h3 { font-size: 23px; }
  .feature-description { font-size: 15px; margin-top: 12px; }
  .feature-list { gap: 12px; margin-top: 20px; }
  .feature-list li { font-size: 15px; }
  .start-section { padding-top: 48px; padding-bottom: 48px; }
  .start-card { flex-direction: column; text-align: center; padding: 26px 20px; gap: 22px; }
  .start-card h2 { font-size: 20px; }
  .start-card p { font-size: 13px; }
  .start-card .button { min-width: 200px; font-size: 13px; }
  .site-footer { padding-top: 32px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 26px; padding-bottom: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .brand-footer { font-size: 19px; }
  .brand-footer img { width: 46px; height: 46px; }
  .footer-brand p { margin-top: 12px; }
  .footer-links { border: 0; padding: 0; }
  .footer-main h2 { margin-bottom: 10px; font-size: 13px; }
  .footer-bottom { font-size: 10px; padding-block: 19px; }
  .footer-wordmark { font-size: 15px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 28px); }
  .hero-banner { padding-inline: 19px; }
  .hero-copy h1 { font-size: 25px; min-height: 90px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .footer-main { gap: 18px; }
}
/* Mobile menu and round close control share the header height. */
.mobile-navigation { display: none; }
@media (max-width: 760px) {
  .mobile-navigation { display: block; position: absolute; inset-inline: 0; top: 8px; opacity: 0; transform: translateX(-4px); visibility: hidden; pointer-events: none; transition: opacity .25s ease, transform .3s ease, visibility .3s; }
  .mobile-navigation.is-open { opacity: 1; transform: translateX(0); visibility: visible; pointer-events: auto; }
  .mobile-navigation nav { margin-left: 56px; min-height: 64px; display: flex; align-items: center; justify-content: space-evenly; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 35px #00000022; }
  .mobile-navigation nav a { padding: 10px 4px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: color .2s; }
  .mobile-navigation nav a:hover, .mobile-navigation nav a:focus-visible { color: var(--accent-text); }
  .mobile-navigation .mobile-menu-close { position: absolute; top: 8px; left: -2px; width: 48px; height: 48px; min-width: 48px; min-height: 48px; max-width: 48px; max-height: 48px; aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 50%; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 5px 18px #00000022; }
  .is-menu-open .header-brand, .is-menu-open .header-actions { visibility: hidden; pointer-events: none; }
}
@media (max-width: 360px) { .mobile-navigation nav { padding-inline: 8px; gap: 2px; } .mobile-navigation nav a { font-size: 12px; padding-inline: 2px; } }
.back-to-top { position: fixed; z-index: 15; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 24px #00000025; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 16px) scale(.9); transition: opacity .25s ease, transform .3s ease, visibility .3s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.back-to-top:hover svg { transform: translateY(-3px); }
.back-to-top svg { transition: transform .2s ease; }

/* Motion uses transform and opacity; content stays visible without JavaScript. */
.slide-content { animation: slide-enter .45s ease both; }
.artwork-enter { animation: artwork-enter .5s ease both; }
.art-primary-line { stroke: var(--text); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.art-secondary-line { stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.art-panel { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
@keyframes artwork-enter { from { opacity: 0; transform: translateX(-18px) scale(.97); } to { opacity: 1; transform: translateX(0) scale(1); } }
.hero-copy h1 { min-height: 136px; }
.hero-copy p { min-height: 57px; }
[data-reveal] { transition: opacity .6s ease, transform .6s ease; }
.reveal-pending { opacity: 0; transform: translateY(18px); }
.feature-icon { transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover .feature-icon { transform: translateY(-4px); box-shadow: var(--shadow); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.footer-wordmark:hover, .footer-wordmark:focus-visible { color: var(--accent-text); }
@keyframes slide-enter { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 1050px) { .hero-copy h1 { min-height: 110px; } }
@media (max-width: 760px) { .hero-copy h1 { min-height: 104px; } .hero-copy p { min-height: 53px; } }
@media (max-width: 360px) { .hero-copy h1 { min-height: 90px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-pending { opacity: 1; transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .hero-actions, .start-section, .slide-arrow, .slide-dots, .scroll-cue, .back-to-top, .mobile-navigation { display: none; }
  body { background: #fff; color: #111; }
  .hero-banner { background: #fff; box-shadow: none; }
}

/* Static HTML remains readable with JavaScript disabled. */
[hidden] { display: none !important; }
.notice-dialog:not([open]) { display: none; }
