@font-face {
  font-family: "IRANSansX";
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/iransansx/woff2/IRANSansXFaNum-Black.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  --ink: #141724;
  --muted: #525a69;
  --surface: #fff;
  --line: #e0e6f1;
  --accent: #235bb1;
  --accent-ink: #fff;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.9 "IRANSansX", Tahoma, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
section[id] { scroll-margin-top: 100px; }
:focus-visible { outline: 3px solid #429af8; outline-offset: 4px; }
.section-wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header {
  width: min(1160px, calc(100% - 64px));
  height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; gap: 7px; align-items: center; font-size: 1.25rem; font-weight: 900; line-height: 1; }
.brand-mark {
  width: 29px;
  height: 29px;
  flex: none;
  display: inline-block;
  background: currentColor;
  mask: url("/assets/kalamo-mark.svg") center / contain no-repeat;
}
.site-nav, .site-footer nav { display: flex; gap: clamp(14px, 3vw, 34px); color: var(--muted); font-size: .875rem; }
.site-nav a:hover, .site-footer a:hover, .site-footer a[aria-current] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle[hidden] { display: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: filter .18s, transform .18s, background .18s;
}
.button:hover { filter: brightness(1.12); transform: translateY(-2px); }
.primary { background: var(--accent); color: var(--accent-ink); }
.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.web-link { min-height: 39px; }
.actions { display: flex; gap: 9px; flex-direction: column; align-items: flex-start; }
.store-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.store-button { min-height: 43px; gap: 6px; padding-inline: 10px; }
.store-button img { object-fit: contain; border-radius: 5px; background: #fff; }
.download-icon {
  width: 16px;
  height: 14px;
  position: relative;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px;
  border-radius: 2px;
  margin-top: 3px;
}
.download-icon::before { content: ""; position: absolute; width: 1.5px; height: 9px; background: currentColor; left: 6px; top: -2px; }
.download-icon::after { content: ""; position: absolute; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; left: 4px; top: 2px; transform: rotate(45deg); }
.version { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.version span { margin-inline: 4px; }
.eyebrow { font-size: .9rem; font-weight: 700; }
.hero-description { color: var(--muted); max-width: 410px; margin: 20px 0 26px; }

/* App preview */
.phone {
  width: min(100%, 264px);
  color: #202432;
  background: #161821;
  padding: 7px;
  border: 1px solid #494c57;
  border-radius: 34px;
  box-shadow: 0 24px 65px #10162654;
  font-size: .78rem;
  line-height: 1.8;
  text-align: start;
}
.phone-screen { overflow: hidden; border-radius: 27px; background: #fdfdff; }
.phone-status, .phone-bar { display: flex; align-items: center; justify-content: space-between; padding-inline: 16px; }
.phone-status { direction: ltr; color: #2c3040; padding-top: 8px; font: 700 .66rem/1.4 system-ui, sans-serif; }
.phone-bar { min-height: 44px; border-bottom: 1px solid #ececf3; }
.phone-bar div, .chat-author { display: flex; gap: 5px; align-items: center; font-weight: 700; }
.phone-bar img, .chat-author img { width: 23px; height: 23px; border-radius: 6px; }
.phone-chat { min-height: 233px; padding: 15px 12px 10px; }
.chat-prompt { width: fit-content; background: #e9effe; color: #263b65; border-radius: 13px 13px 4px 13px; padding: 7px 10px; margin-bottom: 14px; }
.chat-reply { padding-inline: 3px; }
.chat-reply p { margin-top: 8px; }
.phone-input { margin: 6px 10px 12px; border: 1px solid #e5e7ef; padding: 5px 8px 5px 5px; border-radius: 12px; color: #53596a; display: flex; justify-content: space-between; align-items: center; font-size: .7rem; }
.phone-input span:last-child { display: grid; place-items: center; width: 25px; height: 25px; background: #172744; color: #fff; border-radius: 8px; }

/* Shared sections */
.features, .faq { padding-block-start: clamp(65px, 8vw, 110px); }
.market-gallery { padding-block-start: clamp(55px, 7vw, 90px); }
.market-gallery .section-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 20px; }
.gallery-controls { display: flex; gap: 8px; }
.gallery-controls[hidden] { display: none; }
.gallery-arrow { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.gallery-arrow:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
.gallery-arrow:disabled { opacity: .4; cursor: default; }
.gallery-arrow span { width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateX(-2px) rotate(45deg); }
.gallery-next span { transform: translateX(2px) rotate(-135deg); }
.gallery-track { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 17px); min-height: clamp(210px, 37vw, 410px); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: none; width: auto; height: auto; max-height: clamp(210px, 37vw, 410px); max-width: 92%; border-radius: clamp(12px, 1.5vw, 20px); scroll-snap-align: start; }
.section-title h2, .plans h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1.5; font-weight: 900; }
.feature-group { margin-top: 30px; }
.feature-group h3 { margin-bottom: 12px; font-size: clamp(1.08rem, 2vw, 1.3rem); font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-grid:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card { padding: clamp(14px, 2vw, 22px); border: 1px solid var(--line); border-radius: 18px; }
.feature-card h4 { margin-block: 11px 4px; font-size: 1.05rem; }
.feature-card p, .plans p, .faq-list p { color: var(--muted); }
.feature-icon { display: block; position: relative; width: 39px; height: 39px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.feature-icon::before, .feature-icon::after { content: ""; position: absolute; }
.chat-icon::before { inset: 11px 9px 13px; border: 1.6px solid; border-radius: 5px; }
.chat-icon::after { width: 5px; height: 5px; top: 23px; right: 13px; border: solid; border-width: 0 1.6px 1.6px 0; transform: skewY(-40deg); }
.image-icon::before { inset: 10px; border: 1.6px solid; border-radius: 4px; }
.image-icon::after { inset: 18px 14px 14px; border: solid; border-width: 1.6px 0 0 1.6px; transform: rotate(45deg); }
.file-icon::before { inset: 9px 12px; border: 1.6px solid; border-radius: 3px; }
.file-icon::after { inset: 17px 16px 16px; border: solid; border-width: 1.6px 0; }
.models-icon { --feature-mark: url("/assets/icons/d-cube.svg"); }
.think-icon { --feature-mark: url("/assets/icons/d-bulb.svg"); }
.pdf-icon { --feature-mark: url("/assets/icons/pdf-doc.svg"); }
.search-icon, .web-icon { --feature-mark: url("/assets/icons/d-globe.svg"); }
.research-icon { --feature-mark: url("/assets/icons/d-clip.svg"); }
.feature-icon:is(.models-icon, .think-icon, .pdf-icon, .search-icon, .research-icon, .web-icon)::before {
  inset: 10px;
  background: currentColor;
  mask: var(--feature-mark) center / contain no-repeat;
}
.voice-icon::before { inset: 8px 15px 14px; border: 1.6px solid; border-radius: 8px; }
.voice-icon::after { inset: 16px 12px 9px; border: solid; border-width: 0 1.6px 1.6px; border-radius: 0 0 9px 9px; }
.camera-icon::before, .video-icon::before, .slides-icon::before { inset: 10px 9px; border: 1.6px solid; border-radius: 4px; }
.camera-icon::after { inset: 15px; border: 1.6px solid; border-radius: 50%; }
.video-icon::after { inset: 15px 15px 15px 17px; border: solid transparent; border-width: 4.5px 0 4.5px 7px; border-left-color: currentColor; }
.slides-icon::after { inset: 16px 14px 16px; border: solid; border-width: 1.6px 0; }
.studio-icon::before { content: "✦"; inset: 0; display: grid; place-items: center; font-size: 1.25rem; }
.plans { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(55px, 7vw, 90px); padding: clamp(18px, 4vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.plans p { max-width: 590px; margin-top: 8px; }
.plans .button { white-space: normal; }
.faq-list { margin-top: 20px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 17px 0; font-weight: 700; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--muted); font: 1.4rem/1 system-ui, sans-serif; }
.faq-list [open] summary::after { content: "−"; }
.faq-list p { padding-bottom: 17px; max-width: 720px; }
.faq-list p a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { margin-top: 58px; padding-block: 26px 32px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }

/* Current Gimino design */
.classic { --ink: var(--lp-ink); --muted: var(--lp-muted); --surface: var(--lp-surface); --line: var(--lp-stroke); --accent: var(--lp-blue); }
.classic .site-header { width: min(1200px, calc(100% - 48px)); height: 64px; margin: 0; }
.classic .site-nav { margin-inline: auto; }
.classic .primary { background: var(--lp-btn); box-shadow: inset 0 1px 0 #ffffff38, 0 6px 16px #1f4f9e47; }
.classic-hero { padding-top: clamp(108px, 10vw, 142px); }
.classic-hero .lp-dot:nth-child(1) { left: 14.285%; top: 150px; }
.classic-hero .lp-dot:nth-child(2) { left: 85.714%; top: 150px; }
.classic-hero .lp-dot:nth-child(3) { left: 28.57%; top: 300px; }
.classic-hero .lp-dot:nth-child(4) { left: 71.43%; top: 300px; }
.classic-hero .actions { align-items: center; }
.classic-hero .store-actions { justify-content: center; }
.classic-hero .eyebrow { display: flex; align-items: center; gap: 6px; border: 1px solid var(--lp-stroke); padding: 4px 11px; background: var(--lp-blue-soft); color: var(--lp-blue-ink); border-radius: 999px; margin-bottom: 20px; }
.classic-hero .eyebrow img { width: 20px; border-radius: 5px; }
.classic-hero .lp-hero-sub { margin-bottom: 22px; }
.classic-stage { position: relative; display: grid; place-items: start center; height: 285px; margin: 34px auto 0; width: min(690px, 100%); }
.classic-stage .phone { z-index: 1; }
.float-card { position: absolute; border-radius: 15px; background: #fff; border: 1px solid var(--line); box-shadow: var(--lp-shadow); color: #273756; padding: 12px; display: grid; gap: 7px; font-size: .8rem; }
.float-models { right: 8%; top: 49px; width: 151px; text-align: center; transform: rotate(7deg); }
.float-models span { font-weight: 700; }
.float-models b { background: #eef3fe; color: #273756; border-radius: 6px; }
.float-image { left: 6%; top: 36px; width: 155px; text-align: center; transform: rotate(-8deg); }
.float-image img { width: 100%; aspect-ratio: 1.24; object-fit: cover; border-radius: 8px; }
.classic .feature-card { background: var(--lp-surface-2); }
[data-theme="dark"] .classic .phone { color: #f3f4f6; }
[data-theme="dark"] .classic .phone-screen { background: #171a21; }
[data-theme="dark"] .classic .phone-status, [data-theme="dark"] .classic .phone-input { color: #c8cbd6; }
[data-theme="dark"] .classic .phone-bar, [data-theme="dark"] .classic .phone-input { border-color: var(--line); }
[data-theme="dark"] .classic .chat-prompt, [data-theme="dark"] .classic .float-models b { background: var(--lp-blue-soft); color: var(--lp-blue-ink); }
[data-theme="dark"] .classic .float-card { background: var(--surface); color: var(--ink); }

/* Dark bento */
.bento {
  color-scheme: dark;
  --ink: #faf8ff;
  --muted: #beb7cf;
  --surface: #110f1a;
  --line: #393248;
  --accent: #d7c0ff;
  --accent-ink: #221439;
  background: radial-gradient(ellipse at 22% 7%, #211534 0%, transparent 36%), var(--surface);
}
.bento .site-header { border-bottom: 1px solid var(--line); }
.bento .brand-mark { color: #d7c0ff; }
.bento-hero { display: grid; grid-template-columns: .94fr 1.23fr; gap: clamp(24px, 4vw, 62px); align-items: center; padding-top: 55px; }
.bento-copy h1, .editorial-copy h1 { font-size: clamp(2.65rem, 5.1vw, 5.1rem); line-height: 1.2; font-weight: 900; }
.bento-copy h1 em { color: #dac8ff; font-style: normal; }
.bento-copy .eyebrow { display: flex; gap: 7px; align-items: center; margin-bottom: 16px; color: #d6c8ec; }
.bento-copy .eyebrow .brand-mark { width: 20px; height: 20px; }
.bento .button { border-radius: 100px; }
.bento-art { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(0, .82fr); grid-template-rows: 260px 154px; gap: 12px; }
.bento-device {
  position: relative;
  grid-row: span 2;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-items: end;
  padding: 20px 17px 0;
  border: 1px solid #7b559d;
  border-radius: 24px;
  background:
    repeating-radial-gradient(ellipse at 56% 115%, #ffffff23 0 1px, transparent 2px 29px),
    linear-gradient(155deg, #291645, #67459e 55%, #bd9ef3);
}
.bento-device .phone { transform: rotate(-9deg) translate(1px, 34px); }
.art-caption { position: absolute; inset-inline-end: 12px; bottom: 12px; border-radius: 100px; background: #231437; padding: 3px 11px; font-size: .75rem; }
.bento-sample { position: relative; overflow: hidden; border-radius: 24px; isolation: isolate; }
.bento-sample img { width: 100%; height: 100%; object-fit: cover; }
.bento-sample span { position: absolute; inset-inline: 11px; bottom: 10px; width: fit-content; padding: 2px 10px; background: #221522; border-radius: 100px; font-size: .79rem; }
.bento-models { padding: 13px; border-radius: 24px; display: grid; align-content: center; justify-items: start; gap: 6px; background: #ddcff0; color: #211537; font-size: .85rem; }
.bento-models .feature-icon { color: #442971; background: #bda5e2; }
.bento-models span[lang] { font-size: .72rem; font-weight: 700; }
.bento .feature-card { background: #1c1728; }
.bento .feature-image { background: #271b34; }
.bento .feature-file { background: #222032; }

/* Light editorial */
.editorial { --ink: #292b22; --muted: #55574b; --surface: #f8f5ec; --line: #d6d1bf; --accent: #414d36; }
.editorial .site-header { border-bottom: 1px solid var(--line); }
.editorial .button { border-radius: 4px; }
.editorial-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px, 6vw, 90px); align-items: center; padding-block: clamp(42px, 6vw, 78px) 38px; }
.editorial-copy .eyebrow { color: #704239; margin-bottom: 15px; }
.editorial-copy h1 { font-size: clamp(2.35rem, 5.2vw, 5rem); }
.editorial-copy h1 em { font-style: normal; color: #795042; }
.editorial-photo { position: relative; overflow: hidden; background-color: #d2bb9d; }
.editorial-photo img { width: 100%; aspect-ratio: 1.16; object-fit: cover; object-position: center 61%; }
.photo-note { position: absolute; bottom: 15px; right: 15px; max-width: calc(100% - 30px); padding: 7px 12px; background: #f8f5ec; color: #34382a; font-size: .88rem; border-radius: 3px; }
.editorial-figure figcaption { display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: .82rem; margin-top: 9px; }
.editorial .features { border-top: 1px solid var(--line); }
.editorial .feature-card, .editorial .plans { border-radius: 4px; }

@media (max-width: 850px) {
  .section-wrap, .site-header { width: calc(100% - 42px); }
  .feature-grid, .feature-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-art { grid-template-rows: 217px 125px; }
  .bento-device .phone { transform: rotate(-7deg) translateY(62px); }
  .bento-device { padding-inline: 10px; }
  .bento-models { border-radius: 17px; }
}
@media (max-width: 680px) {
  .section-wrap, .site-header { width: calc(100% - 32px); }
  .site-header { height: 65px; }
  .site-nav { display: none; }
  .classic .site-header { top: 13px; width: calc(100% - 40px); height: 56px; }
  .classic .classic-hero { width: calc(100% - 20px); padding-top: 95px; }
  .classic .classic-hero h1 { margin-bottom: 13px; }
  .classic-stage { height: 246px; margin-top: 24px; }
  .float-card { display: none; }
  .editorial-hero, .bento-hero { grid-template-columns: 1fr; }
  .plans { align-items: flex-start; flex-direction: column; }
  .bento-hero { padding-top: 35px; }
  .bento-art { grid-template-rows: 205px 120px; }
  .editorial-hero { padding-top: 28px; }
  .site-footer { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .feature-grid, .feature-grid:has(> :nth-child(4)) { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .button { padding-inline: 12px; font-size: .84rem; }
  .bento-models { padding: 8px; }
  .bento-models span[lang] { font-size: .63rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
