:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --surface: #fffefa;
  --ink: #202c27;
  --muted: #737b73;
  --line: #e5e6df;
  --green: #167a65;
  --green-dark: #0e614f;
  --green-pale: #e7f0ea;
  --lime: #c5d88c;
  --serif: 'Noto Naskh Arabic', 'Times New Roman', serif;
  --sans: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 90% 8%, rgba(219, 228, 213, .28), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }

.page-shell { max-width: 1336px; padding: 0 62px; margin: 0 auto; }
.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(32, 44, 39, .12);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: flex; align-items: end; gap: 3px; height: 26px; width: 25px; transform: skewY(-12deg); }
.brand-mark i { display: block; width: 6px; border-radius: 2px 2px 1px 1px; background: var(--green); }
.brand-mark i:nth-child(1) { height: 13px; opacity: .65; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 26px; opacity: .82; }
.brand-name, .footer-brand { font-family: var(--serif); font-weight: 700; font-size: 27px; letter-spacing: -.04em; line-height: 1; }
.brand-dot { color: var(--green); }
.header-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; color: #59635c; }
.header-nav > a:first-child:hover { color: var(--green); }
.nav-cta { display: inline-flex; align-items: center; gap: 13px; color: var(--green); font-weight: 600; }
.nav-cta span { font-size: 18px; transition: transform .2s ease; }
.nav-cta:hover span { transform: translateX(-4px); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 55px; align-items: center; padding: 76px 0 85px; }
.hero-copy { max-width: 730px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 12px; font-weight: 600; letter-spacing: .015em; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 122, 101, .11); }
.hero h1 { margin: 20px 0 14px; font-family: var(--serif); font-size: clamp(51px, 6.7vw, 82px); font-weight: 600; line-height: 1.09; letter-spacing: -.045em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-description { max-width: 485px; color: #68716a; font-size: 16px; line-height: 1.9; margin: 0; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 23px; font-size: 11px; color: #788078; }
.sparkle { color: #8aa76b; font-size: 17px; }
.meta-divider { width: 1px; height: 13px; background: #d7dcd2; margin: 0 3px; }
.hero-note { min-height: 230px; padding: 24px 25px 19px; position: relative; overflow: hidden; background: var(--green-pale); border: 1px solid #d6e4d8; }
.note-index { display: flex; align-items: center; justify-content: space-between; color: #6b7c6b; font-size: 10px; letter-spacing: .04em; }
.note-index b { font-weight: 500; font-variant-numeric: tabular-nums; }
.hero-note p { position: relative; z-index: 1; margin: 31px 0 15px; color: #294a3c; font-family: var(--serif); font-size: 28px; line-height: 1.4; }
.note-rule { display: block; height: 2px; width: 34px; background: var(--green); margin-bottom: 12px; }
.note-foot { color: #718074; font-size: 10px; }
.note-star { position: absolute; left: -3px; bottom: -41px; color: rgba(22, 122, 101, .09); font-size: 125px; line-height: 1; }

.workspace { border-top: 1px solid rgba(32, 44, 39, .15); padding-top: 31px; }
.section-heading, .results-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-kicker { gap: 6px; font-size: 10px; letter-spacing: .05em; }
.section-kicker span { color: #9aa29b; font-weight: 500; }
.section-heading h2, .results-heading h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 31px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.section-heading > p { margin: 0 0 4px; color: #899088; font-size: 11px; line-height: 1.9; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 20px; align-items: stretch; }
.editor-card { background: var(--surface); border: 1px solid var(--line); padding: 29px 32px 25px; box-shadow: 0 11px 34px rgba(44, 54, 44, .035); }
.card-topline { display: flex; justify-content: space-between; padding-bottom: 19px; margin-bottom: 20px; border-bottom: 1px solid #eff0ea; color: #445148; font-size: 12px; font-weight: 600; }
.required-note { color: #9aa198; font-size: 10px; font-weight: 400; }
.required-note b, .field-label b { color: #bb785b; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr .8fr; gap: 16px; }
.field { display: flex; flex-direction: column; position: relative; margin-bottom: 17px; }
.field-label { color: #465148; font-size: 11px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #e2e5dd; border-radius: 2px; background: #fff; color: #344239; outline: 0; transition: border-color .18s ease, box-shadow .18s ease; }
.field input, .field select { height: 46px; padding: 0 13px; font-size: 12px; }
.field textarea { min-height: 116px; resize: vertical; padding: 11px 13px 25px; font-size: 12px; line-height: 1.8; }
.field input::placeholder, .field textarea::placeholder { color: #b0b6ae; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #75aa95; box-shadow: 0 0 0 3px rgba(22, 122, 101, .08); }
.select-wrap { position: relative; }
.field select { appearance: none; padding-inline-start: 13px; padding-inline-end: 33px; cursor: pointer; }
.select-arrow { position: absolute; left: 12px; top: 9px; color: #839087; pointer-events: none; font-size: 16px; }
.field-hint { position: absolute; left: 11px; bottom: 5px; color: #a0a79f; font-size: 9px; direction: ltr; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-top: 2px; }
.privacy-note { margin: 0; color: #879087; font-size: 10px; }
.lock-icon { color: var(--green); font-size: 15px; vertical-align: -1px; margin-inline-end: 4px; }
.generate-button { border: 0; border-radius: 2px; display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-width: 162px; height: 48px; padding: 0 15px; background: var(--green); color: white; cursor: pointer; font-size: 12px; font-weight: 600; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.generate-button:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 6px 15px rgba(22, 122, 101, .18); transform: translateY(-1px); }
.generate-button:disabled { opacity: .72; cursor: wait; }
.button-icon { color: #c8dfaa; font-size: 16px; }
.is-loading .button-icon { animation: rotate 1.8s linear infinite; }
.form-error { margin: 13px 0 0; padding: 10px 12px; border-inline-start: 2px solid #bf7458; color: #9c4f3b; background: #fbf2ed; font-size: 11px; }

.steps-panel { background: #efefe8; padding: 25px 24px 20px; display: flex; flex-direction: column; }
.steps-title { display: flex; align-items: center; gap: 8px; color: #455349; font-size: 12px; font-weight: 600; }
.steps-icon { color: var(--green); font-size: 15px; }
.steps-list { list-style: none; margin: 21px 0 20px; padding: 0; display: grid; gap: 16px; }
.steps-list li { display: flex; align-items: flex-start; gap: 11px; }
.step-number { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border: 1px solid #cdd8ca; border-radius: 50%; color: var(--green); font-size: 8px; }
.steps-list b { display: block; color: #47534a; font-size: 11px; font-weight: 600; margin-top: 1px; }
.steps-list p { color: #8a9288; font-size: 10px; margin: 2px 0 0; }
.sample-box { border-top: 1px solid #d9ddd4; padding-top: 14px; margin-top: auto; }
.sample-label { color: #7c877b; font-size: 9px; }
.sample-box p { color: #69756a; font-size: 10px; line-height: 1.8; margin: 4px 0 8px; }
.sample-button { border: 0; background: transparent; padding: 0; color: var(--green); font-size: 10px; font-weight: 600; cursor: pointer; }
.sample-button span { display: inline-block; margin-inline-start: 6px; font-size: 15px; transition: transform .2s ease; }
.sample-button:hover span { transform: translateX(-3px); }
.small-print { color: #929990; font-size: 9px; line-height: 1.8; margin: 15px 0 0; }

.results-section { padding-top: 73px; scroll-margin-top: 25px; }
.results-heading { margin-bottom: 22px; }
.copy-all-button { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #d9e3d9; background: transparent; color: var(--green); padding: 9px 12px; font-size: 10px; cursor: pointer; transition: background .2s ease; }
.copy-all-button:hover:not(:disabled) { background: var(--green-pale); }
.copy-all-button:disabled { opacity: .45; cursor: not-allowed; }
.copy-all-button span { font-size: 15px; }
.loading-panel { display: flex; align-items: center; gap: 14px; min-height: 90px; padding: 22px; margin-bottom: 13px; border: 1px solid #dfe7df; background: #fbfcf8; }
.loading-mark { color: var(--green); font-size: 26px; animation: rotate 2s linear infinite; }
.loading-panel b { color: #415348; font-size: 13px; }
.loading-panel p { margin: 2px 0 0; color: #849087; font-size: 11px; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.result-card { min-height: 194px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); padding: 19px 20px 16px; animation: rise-in .35s ease both; }
.result-card:nth-child(2) { animation-delay: .04s; }
.result-card:nth-child(3) { animation-delay: .08s; }
.result-card:nth-child(4) { animation-delay: .12s; }
.result-card-featured { grid-column: 1 / -1; min-height: 135px; background: #f0f4ed; border-color: #dfe9dc; }
.result-card-plain { grid-column: 1 / -1; min-height: 180px; }
.result-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(49, 70, 54, .1); padding-bottom: 11px; }
.result-label { color: #627167; font-size: 10px; font-weight: 600; }
.copy-button { border: 1px solid #e1e6de; background: transparent; padding: 4px 10px; color: #597267; font-size: 9px; cursor: pointer; }
.copy-button:hover { border-color: #8ba997; color: var(--green); }
.result-copy { color: #35473c; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.95; margin: 13px 0 0; }
.result-card-featured .result-copy { max-width: 880px; font-size: 13px; }
.results-footnote { margin-top: 11px; color: #8a9289; font-size: 10px; }

.closing-note { display: flex; align-items: center; gap: 11px; margin: 72px 0 48px; border-top: 1px solid rgba(32, 44, 39, .13); padding-top: 22px; color: #748076; }
.closing-note > span { color: #9eb27a; font-size: 18px; }
.closing-note p { margin: 0; font-size: 12px; }
.closing-note b { color: #4d5c51; font-weight: 600; }
.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 73px; border-top: 1px solid rgba(32, 44, 39, .12); color: #959c94; font-size: 9px; }
.footer-brand { color: #57685c; font-size: 19px; }
.toast { position: fixed; z-index: 10; bottom: 24px; left: 50%; transform: translate(-50%, 10px); padding: 9px 17px; background: #263a30; color: white; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 8px 24px rgba(32, 44, 39, .18); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 980px) {
  .page-shell { padding: 0 34px; }
  .hero { grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; padding: 61px 0 68px; }
  .work-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; }
  .editor-card { padding: 25px 24px 22px; }
  .steps-panel { padding: 22px 18px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 15px; }
}
@media (max-width: 700px) {
  .page-shell { padding: 0 21px; }
  .site-header { height: 69px; }
  .brand-name { font-size: 24px; }
  .header-nav { gap: 17px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding: 51px 0 57px; }
  .hero h1 { font-size: clamp(49px, 12vw, 68px); margin-top: 16px; }
  .hero-description { font-size: 14px; }
  .hero-note { min-height: unset; padding: 18px 20px; }
  .hero-note p { margin: 16px 0 10px; font-size: 23px; }
  .note-star { font-size: 90px; bottom: -28px; }
  .section-heading, .results-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .section-heading h2, .results-heading h2 { font-size: 27px; }
  .section-heading > p { font-size: 10px; }
  .desktop-break { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .editor-card { padding: 23px 18px 19px; }
  .field-row { grid-template-columns: 1fr .82fr; gap: 10px; }
  .field-row .field { margin-bottom: 15px; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .generate-button { width: 100%; }
  .steps-panel { padding: 21px 19px; }
  .steps-list { grid-template-columns: 1fr; }
  .results-section { padding-top: 54px; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card-featured, .result-card-plain { grid-column: auto; }
  .result-card { min-height: 150px; }
  .results-heading { margin-bottom: 19px; }
  .copy-all-button { align-self: flex-start; }
  .closing-note { margin: 53px 0 34px; }
  .site-footer { gap: 7px; min-height: 68px; flex-wrap: wrap; padding: 13px 0; }
  .site-footer span:nth-of-type(1) { display: none; }
}
@media (max-width: 390px) {
  .page-shell { padding: 0 16px; }
  .header-nav { gap: 12px; }
  .header-nav > a:first-child { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 15px; }
  .hero-meta { font-size: 10px; gap: 8px; }
  .section-heading h2, .results-heading h2 { font-size: 25px; }
}


.account-strip {
  margin: 22px 0 0;
  border: 1px solid #dfe7df;
  background: rgba(255, 254, 250, .82);
  padding: 14px 19px;
}
.account-state { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.account-state-logged-in { align-items: center; }
.account-kicker { display: block; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .025em; }
.account-state p { margin: 3px 0 0; color: #6f7a71; font-size: 11px; }
.account-primary, .account-secondary {
  border: 1px solid #cbdace;
  border-radius: 2px;
  background: var(--green);
  color: white;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.account-primary:hover:not(:disabled) { background: var(--green-dark); }
.account-primary span { margin-inline-start: 8px; font-size: 14px; }
.account-primary:disabled, .account-secondary:disabled { opacity: .55; cursor: wait; }
.account-identity, .account-quota-block { min-width: 170px; }
.account-identity strong, .account-quota-block strong { display: block; margin-top: 3px; color: #33473a; font-size: 12px; }
.account-email { display: block; color: #839087; font-size: 9px; }
.account-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.account-secondary { background: transparent; color: var(--green); }
.account-secondary:hover:not(:disabled) { border-color: var(--green); background: var(--green-pale); }
.account-link, .footer-link { border: 0; background: transparent; color: #8a6d5c; padding: 5px; font-size: 9px; cursor: pointer; }
.account-link:hover, .footer-link:hover { color: #5e463a; text-decoration: underline; }
.account-message { margin: 10px 0 0; color: var(--green-dark); font-size: 10px; }
.account-message.is-error { color: #9c4f3b; }
.footer-link { color: #64766b; font-size: 9px; }
.privacy-dialog {
  width: min(580px, calc(100vw - 30px));
  max-height: min(82vh, 660px);
  border: 1px solid #dce5dc;
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  padding: 26px 29px 25px;
  box-shadow: 0 24px 80px rgba(32, 44, 39, .22);
}
.privacy-dialog::backdrop { background: rgba(20, 34, 27, .38); backdrop-filter: blur(2px); }
.privacy-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.privacy-dialog-header h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.privacy-dialog-copy { padding-top: 11px; color: #667269; font-size: 12px; line-height: 1.95; }
.privacy-dialog-copy p { margin: 10px 0; }
@media (max-width: 700px) {
  .account-strip { margin-top: 14px; padding: 13px 14px; }
  .account-state, .account-state-logged-in { align-items: flex-start; flex-direction: column; gap: 11px; }
  .account-primary { width: 100%; }
  .account-actions { width: 100%; justify-content: space-between; margin-inline-start: 0; }
  .account-identity, .account-quota-block { min-width: 0; }
  .privacy-dialog { padding: 21px 19px; }
  .privacy-dialog-header h2 { font-size: 21px; }
}
