/* Khayal Works — company website. Colours, fonts and rules come from brand/Khayal Works - Brand Guide.pdf */

@font-face { font-family: "Readex Pro"; src: url("fonts/ReadexPro.ttf") format("truetype"); font-weight: 160 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --indigo: #3A2FD1;
  --indigo-deep: #241C8F;
  --ink: #15142B;
  --ink-muted: #5B5973;
  --paper: #FBFAF7;
  --white: #FFFFFF;
  --sand: #EDE3D0;
  --mist: #F1F0FA;
  --gold: #C47D14;
  --line: #E3E1EC;
  --head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --text: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.65; }
/* Arabic sits one step bigger than English, never smaller */
html[lang="ar"] body { font-size: 17px; line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-deep); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.02em; }
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.35; }

.wrap { max-width: 1296px; margin-inline: auto; padding-inline: 24px; }
section { padding-block: 88px; }
.band-white { background: var(--white); border-block: 1px solid var(--line); }

.eyebrow { font-family: var(--text); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { font-size: 14px; letter-spacing: 0; }
.muted { color: var(--ink-muted); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }

/* Buttons: borders, not shadows */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 600; font-size: 15px; padding: 14px 24px; border-radius: 12px; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-deep); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--ink); }
.btn-white { background: var(--white); color: var(--indigo-deep); }
.btn-white:hover { background: var(--mist); color: var(--indigo-deep); }
.btn-outline { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }

/* Header */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.nav .logo { flex-shrink: 0; }
.nav .logo img { height: 40px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 32px; }
.nav nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--indigo); }

/* Hero */
.hero { padding-block: 96px 112px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); }
.hero .second { font-family: var(--head); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); color: var(--indigo); margin-top: 14px; }
.hero .lead { color: var(--ink-muted); font-size: 1.06em; max-width: 34em; margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px; padding: 0; list-style: none; color: var(--ink-muted); font-size: .82em; font-weight: 500; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 24px; max-width: 560px; margin-inline-start: auto; width: 100%; }
.tile { aspect-ratio: 1; border-radius: 24px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; font-family: var(--head); font-weight: 500; font-size: 13px; background: var(--mist); }
.tile svg { width: 26px; height: 26px; color: var(--indigo); }
.tile.sand { background: var(--sand); }
.tile.sand svg { color: var(--ink); }
.tile.ink { background: var(--ink); color: var(--white); }
.tile.ink svg { color: var(--white); }
.tile.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; background: var(--indigo); color: var(--white); padding: 32px; position: relative; justify-content: space-between; }
.tile.big::after { content: ""; position: absolute; top: -22px; inset-inline-end: -22px; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); }
.tile.big .label { font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
html[lang="ar"] .tile.big .label { letter-spacing: 0; font-size: 14px; }
.tile.big .main { font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.2; }
.tile.big .alt { font-size: clamp(18px, 2vw, 26px); font-weight: 400; opacity: .9; margin-top: 6px; }

/* Steps */
.section-head { max-width: 760px; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.steps .num { font-family: var(--head); font-weight: 300; font-size: 34px; color: var(--indigo); line-height: 1; margin-bottom: 28px; }
.steps h3 { font-size: 21px; margin-bottom: 12px; }
.steps p { color: var(--ink-muted); font-size: .9em; }

/* What you get */
.get .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; list-style: none; padding: 0; margin: 0; }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.features .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--indigo); display: grid; place-items: center; }
.features .ico svg { width: 22px; height: 22px; }
.features h3 { font-size: 18px; margin-bottom: 6px; line-height: 1.4; }
.features p { color: var(--ink-muted); font-size: .88em; }

/* Product showcase panel (not used until an app is published) */
.work { padding-top: 0; }
.work-panel { background: var(--sand); border-radius: 28px; padding: 80px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.work-panel .eyebrow { color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { background: var(--white); color: var(--ink); border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.work-panel h2 { font-size: clamp(38px, 4.4vw, 56px); margin-bottom: 20px; }
.work-panel h2 span { font-weight: 400; }
.work-panel p { max-width: 32em; }
.work-panel p + p { margin-top: 18px; color: var(--ink-muted); font-size: .88em; }
.work-panel .more { display: inline-block; margin-top: 24px; font-family: var(--head); font-weight: 600; font-size: 15px; }

.phone { width: 300px; max-width: 100%; margin-inline: auto; background: var(--paper); border: 10px solid var(--ink); border-radius: 40px; padding: 28px 18px 22px; font-family: var(--text); font-size: 13px; line-height: 1.6; }
.phone-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.phone-top strong { font-family: var(--head); font-size: 20px; font-weight: 600; }
.phone-top span { color: var(--ink-muted); font-size: 11px; }
.session { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.session b { display: block; font-weight: 600; }
.session small { display: block; color: var(--ink-muted); font-size: 11px; }
.tag { display: inline-block; margin-top: 8px; padding: 1px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--mist); color: var(--indigo); }
.tag.need { background: var(--sand); color: var(--ink); }
.phone-btn { margin-top: 56px; background: var(--indigo); color: var(--white); border-radius: 12px; text-align: center; padding: 10px; font-family: var(--head); font-weight: 600; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.price .kind { font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-bottom: 14px; }
.price .amount { font-family: var(--head); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; margin-bottom: 20px; }
.price .amount small { font-size: 15px; font-weight: 400; }
.price p { color: var(--ink-muted); font-size: .88em; }
.price.main { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.price.main .kind, .price.main p { color: rgba(255,255,255,.88); }
.own { margin-top: 32px; background: var(--mist); border-radius: 14px; padding: 20px 32px; font-size: .9em; }

/* Closing call */
.cta { padding-top: 24px; }
.cta-panel { background: var(--indigo-deep); color: var(--white); border-radius: 28px; padding: 96px; display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }
.cta-panel h2 { font-size: clamp(34px, 4.4vw, 56px); }
.cta-panel .second { font-family: var(--head); font-weight: 300; font-size: clamp(20px, 2.4vw, 30px); opacity: .9; margin-top: 12px; }
.cta-panel .actions { flex-direction: column; margin-top: 0; min-width: 250px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 48px; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
footer .logo img { height: 34px; width: auto; margin-bottom: 12px; }
footer small { color: var(--ink-muted); font-size: 13px; }
footer nav { display: flex; gap: 32px; flex-wrap: wrap; font-weight: 500; font-size: 14px; }
footer nav a { color: var(--ink); }

/* Draft marker: a value the owner still has to give. Search the site for class="todo" before publishing. */
.todo { outline: 2px dashed var(--gold); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 1000px) {
  section { padding-block: 64px; }
  .nav nav a:not(.btn):not(.lang) { display: none; }
  .hero { padding-block: 56px 72px; }
  .hero .wrap, .get .wrap, .work-panel { grid-template-columns: 1fr; gap: 48px; }
  .tiles { margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; }
  .work-panel { padding: 48px 32px; }
  .cta-panel { padding: 56px 32px; }
  .cta-panel .actions { width: 100%; }
}
@media (max-width: 600px) {
  .nav .wrap { min-height: 68px; gap: 12px; }
  .nav .logo img { height: 32px; }
  .nav nav .btn { display: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .tiles { gap: 14px; }
  .tile { border-radius: 18px; padding: 12px; font-size: 12px; }
  .tile.big { padding: 20px; }
  .tile.big::after { width: 34px; height: 34px; top: -14px; inset-inline-end: -14px; }
  .actions .btn { flex: 1 1 100%; }
  .price { padding: 28px; }
  .own { padding: 18px 20px; }
}

/* Idea builder (/start/) */
.wz-page { padding-block: 56px 96px; }
.wz { max-width: 760px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 48px; scroll-margin-top: 100px; }
.wz-step { font-weight: 600; font-size: 13px; color: var(--indigo); margin-bottom: 10px; }
.wz-bar { height: 6px; border-radius: 99px; background: var(--mist); overflow: hidden; margin-bottom: 36px; }
.wz-bar span { display: block; height: 100%; background: var(--indigo); border-radius: 99px; transition: width .25s; }
.wz-q { font-size: clamp(26px, 4vw, 38px); margin-bottom: 24px; }
.wz-hint { color: var(--ink-muted); margin-bottom: 20px; }
.wz-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wz-choices.small { grid-template-columns: repeat(3, 1fr); }
.wz-choice { font: inherit; font-family: var(--head); font-weight: 500; color: var(--ink); text-align: start; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 18px 20px; min-height: 64px; cursor: pointer; transition: border-color .15s, background .15s; }
.wz-choice:hover { border-color: var(--indigo); }
.wz-choice[aria-pressed="true"] { border-color: var(--indigo); background: var(--mist); color: var(--indigo-deep); }
.wz-choice.many { display: flex; align-items: center; gap: 12px; }
.wz-choice.many::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--white); }
.wz-choice.many[aria-pressed="true"]::before { border-color: var(--indigo); background: var(--indigo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.500l3.200 3.200L15 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.wz-choice:focus-visible, .wz-input:focus-visible, .btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.wz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.wz-actions .btn { cursor: pointer; font-family: var(--head); }
.wz-actions .btn:disabled { opacity: .6; cursor: default; }
.wz-input { font: inherit; color: var(--ink); width: 100%; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; }
textarea.wz-input { resize: vertical; min-height: 140px; }
.wz-field { display: block; margin-bottom: 16px; }
.wz-field span, .wz-label { display: block; font-weight: 500; font-size: .9em; margin-bottom: 8px; }
.wz-label { margin-top: 24px; }
.wz-trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.wz-details { margin-top: 24px; background: var(--mist); border-radius: 14px; padding: 16px 20px; }
.wz-details summary { cursor: pointer; font-weight: 500; }
.wz-summary { margin: 14px 0 0; font-size: .9em; }
.wz-summary dt { color: var(--ink-muted); font-size: .88em; }
.wz-summary dd { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wz-error { color: #A8321F; font-weight: 500; min-height: 1.6em; margin-top: 16px; }
.wz-privacy { color: var(--ink-muted); font-size: .8em; margin-top: 16px; }
.wz-done { text-align: center; padding-block: 24px; }
.wz-done .wz-dot { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); margin: 0 auto 28px; }
.wz-done .btn { margin-top: 12px; }
@media (max-width: 600px) {
  .wz-page { padding-block: 24px 64px; }
  .wz { padding: 28px 20px; border-radius: 20px; }
  .wz-choices, .wz-choices.small { grid-template-columns: 1fr; }
}
