:root {
  --ke-ai-ink: #1d2923;
  --ke-ai-muted: #637069;
  --ke-ai-green: #265b4a;
  --ke-ai-green-dark: #173c31;
  --ke-ai-red: #c8583e;
  --ke-ai-red-dark: #a94631;
  --ke-ai-cream: #f8f2e8;
  --ke-ai-canvas: #fffdf9;
  --ke-ai-white: #fff;
  --ke-ai-line: #dedfd9;
  --ke-ai-shadow: 0 24px 70px rgba(31, 47, 39, .13);
}

.ke-ai-hero { position: relative; padding: 105px 0 95px; overflow: hidden; background: radial-gradient(circle at 84% 12%, rgba(200,88,62,.17), transparent 27%), linear-gradient(135deg,#fbf6ed 0%,#f0dfcf 100%); }
.ke-ai-hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -280px; bottom: -300px; border: 1px solid rgba(38,91,74,.14); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.12), 0 0 0 160px rgba(255,255,255,.07); }
.ke-ai-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(390px,.95fr); align-items: center; gap: clamp(48px,7vw,100px); }
.ke-ai-hero h1 { max-width: 760px; font-size: clamp(3.7rem,6.6vw,6.7rem); line-height: .93; }
.ke-ai-hero p { max-width: 700px; color: #4f5f56; font-size: 1.16rem; }
.ke-ai-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--ke-ai-green); font-size: .73rem; font-weight: 800; }
.ke-ai-trust span::before { content: "✓"; margin-right: 6px; color: var(--ke-ai-red); }
.ke-ai-hero-visual { position: relative; min-height: 510px; border: 9px solid #fff; border-radius: 34px 34px 8px 34px; overflow: hidden; background: #d5c6b4; box-shadow: var(--ke-ai-shadow); transform: rotate(1.5deg); }
.ke-ai-hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ke-ai-hero-before, .ke-ai-hero-after { position: absolute; z-index: 2; top: 18px; padding: 8px 13px; border-radius: 999px; color: #fff; background: rgba(23,60,49,.82); font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ke-ai-hero-before { left: 18px; }
.ke-ai-hero-after { right: 18px; background: rgba(169,70,49,.88); }
.ke-ai-hero-visual::after { content: "↔"; position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; width: 48px; height: 48px; place-items: center; border: 5px solid #fff; border-radius: 50%; color: #fff; background: var(--ke-ai-red); box-shadow: 0 8px 24px rgba(0,0,0,.22); transform: translate(-50%,-50%); }
.ke-ai-hero-visual > b { position: absolute; z-index: 3; right: 18px; bottom: 18px; padding: 10px 14px; border-radius: 10px; color: #fff; background: rgba(23,60,49,.86); font-size: .68rem; letter-spacing: .04em; }

.ke-ai-tool-section { padding: 98px 0; background: #fff; }
.ke-ai-tool-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 38px; }
.ke-ai-tool-heading p { max-width: 500px; color: var(--ke-ai-muted); }
.ke-ai-frame-wrap { padding: 10px; border: 1px solid rgba(29,41,35,.08); border-radius: 32px; background: linear-gradient(135deg,#f3e2d3,#e7eee9); box-shadow: 0 28px 90px rgba(28,44,36,.14); }
.ke-ai-frame { display: block; width: 100%; height: 940px; border: 0; border-radius: 22px; background: #fff; }
.ke-ai-concept-note { max-width: 980px; margin: 25px auto 0 !important; color: var(--ke-ai-muted); font-size: .76rem; line-height: 1.65; text-align: center; }
.ke-ai-concept-note strong { color: var(--ke-ai-ink); }

.ke-ai-steps { background: #fffaf4; }
.ke-ai-step-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.ke-ai-step-grid article { min-height: 280px; padding: 34px; border: 1px solid rgba(29,41,35,.08); border-radius: 26px 26px 6px 26px; background: #fff; box-shadow: 0 14px 40px rgba(43,50,42,.07); }
.ke-ai-step-grid article:nth-child(2) { background: #f1dfd1; transform: translateY(18px); }
.ke-ai-step-grid b { display: grid; width: 48px; height: 48px; margin-bottom: 56px; place-items: center; border-radius: 50% 50% 6px 50%; color: #fff; background: var(--ke-ai-red); font-size: .72rem; }
.ke-ai-step-grid h3 { font-size: 1.55rem; }
.ke-ai-step-grid p { color: var(--ke-ai-muted); font-size: .9rem; }
.ke-ai-ad { min-height: 180px; margin-block: 45px; }
.ke-ai-two-col { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(320px,.88fr); align-items: center; gap: clamp(55px,8vw,110px); }
.ke-ai-checklist { display: grid; gap: 11px; margin: 30px 0 0; padding: 0; list-style: none; }
.ke-ai-checklist li { padding: 15px 18px 15px 50px; border-radius: 12px; background: rgba(255,255,255,.64); position: relative; }
.ke-ai-checklist li::before { content: "✓"; position: absolute; left: 17px; top: 15px; color: var(--ke-ai-red); font-weight: 900; }
.ke-ai-material-board { position: relative; min-height: 500px; overflow: hidden; border-radius: 50% 50% 8px 50%; background: #d7b79a; box-shadow: var(--ke-ai-shadow); }
.ke-ai-material-board > span { position: absolute; border: 8px solid rgba(255,255,255,.88); box-shadow: 0 18px 45px rgba(38,44,38,.16); }
.ke-ai-swatch-one { width: 54%; height: 58%; left: 5%; top: 7%; border-radius: 50% 8px 50% 50%; background: repeating-linear-gradient(90deg,#b98558 0 7px,#c69568 7px 15px); transform: rotate(-7deg); }
.ke-ai-swatch-two { width: 47%; height: 44%; right: 4%; top: 23%; border-radius: 10px 50% 50% 50%; background: radial-gradient(circle at 25% 30%,rgba(130,111,91,.2) 0 2px,transparent 3px),#efe6d7; transform: rotate(8deg); }
.ke-ai-swatch-three { width: 46%; height: 38%; left: 29%; bottom: 3%; border-radius: 50% 50% 10px 50%; background: #5a7164; transform: rotate(3deg); }
.ke-ai-material-board > div { position: absolute; z-index: 2; right: 23px; bottom: 28px; padding: 18px 21px; border-radius: 18px 18px 4px 18px; color: #fff; background: rgba(23,60,49,.9); }
.ke-ai-material-board small, .ke-ai-material-board strong { display: block; }
.ke-ai-material-board small { margin-bottom: 7px; color: #efb291; font-size: .61rem; font-weight: 900; letter-spacing: .15em; }
.ke-ai-material-board strong { font-family: Georgia,serif; font-size: 1rem; line-height: 1.45; }
.ke-ai-photo-tips { background: #fff; }
.ke-ai-tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ke-ai-tip-grid article { position: relative; padding: 36px 40px; border: 1px solid var(--ke-ai-line); border-radius: 24px; }
.ke-ai-tip-grid article:first-child { background: #edf4ef; }
.ke-ai-tip-grid article:last-child { background: #f8e8e2; }
.ke-ai-tip-grid article > span { position: absolute; right: 28px; top: 24px; color: var(--ke-ai-green); font-size: 2rem; font-weight: 900; }
.ke-ai-tip-grid article:last-child > span { color: var(--ke-ai-red); }
.ke-ai-tip-grid ul { margin: 20px 0 0; padding-left: 1.2rem; color: var(--ke-ai-muted); }
.ke-ai-planning { background: #f6eadf; }
.ke-ai-planning ol { display: grid; gap: 13px; padding-left: 1.3rem; }
.ke-ai-planning aside { display: grid; align-self: stretch; align-content: center; gap: 5px; padding: 42px; border-radius: 28px 28px 6px 28px; color: rgba(255,255,255,.8); background: var(--ke-ai-green-dark); }
.ke-ai-planning aside h3 { margin-bottom: 22px; color: #fff; font-size: 2rem; }
.ke-ai-planning aside a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.ke-ai-planning aside a span { color: #efad87; }
.ke-ai-planning aside a:hover { color: #efad87; }
.ke-ai-faq details { margin-top: 12px; border: 1px solid rgba(29,41,35,.1); border-radius: 16px; background: #fff; }
.ke-ai-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 23px; cursor: pointer; font-family: Georgia,serif; font-size: 1.1rem; font-weight: 700; list-style: none; }
.ke-ai-faq summary::-webkit-details-marker { display: none; }
.ke-ai-faq summary span { color: var(--ke-ai-red); font-family: Inter,sans-serif; font-size: 1.4rem; transition: transform .2s ease; }
.ke-ai-faq details[open] summary span { transform: rotate(45deg); }
.ke-ai-faq details p { margin: 0; padding: 0 23px 22px; color: var(--ke-ai-muted); font-size: .9rem; }

.ke-ai-home-teaser { padding: 88px 0; background: #f5e5d7; }
.ke-ai-home-grid { display: grid; grid-template-columns: minmax(320px,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(55px,8vw,105px); }
.ke-ai-home-art { position: relative; min-height: 370px; overflow: hidden; border: 8px solid #fff; border-radius: 32px 32px 6px 32px; background: linear-gradient(90deg,#958776 0 49.5%,#efe5d8 50% 100%); box-shadow: var(--ke-ai-shadow); }
.ke-ai-home-art::before, .ke-ai-home-art::after { content: ""; position: absolute; inset: 25% 5% 12% 5%; background: linear-gradient(#d6cdc0 0 32%,#746658 32% 38%,#b9ad9e 38% 100%); clip-path: inset(0 50% 0 0); }
.ke-ai-home-art::after { background: linear-gradient(#f7f0e5 0 32%,#ba6a4e 32% 38%,#dcbf9d 38% 100%); clip-path: inset(0 0 0 50%); }
.ke-ai-home-art i { position: absolute; z-index: 2; left: 50%; top: 0; width: 4px; height: 100%; background: #fff; transform: translateX(-50%); }
.ke-ai-home-art span, .ke-ai-home-art strong { position: absolute; z-index: 3; top: 18px; padding: 7px 12px; border-radius: 999px; color: #fff; background: rgba(23,60,49,.82); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.ke-ai-home-art span { left: 18px; }
.ke-ai-home-art strong { right: 18px; background: var(--ke-ai-red); }
.ke-ai-mini-note { align-self: center; color: var(--ke-ai-muted); font-size: .72rem; font-weight: 750; }

/* Embedded designer */
.ke-ai-frame-body { margin: 0; color: var(--ke-ai-ink); background: var(--ke-ai-canvas); font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height: 1.55; }
.ke-ai-frame-body *, .ke-ai-frame-body *::before, .ke-ai-frame-body *::after { box-sizing: border-box; }
.ke-ai-tool { padding: 24px; }
.ke-ai-tool-status { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 12px 16px; border: 1px solid #dce8e0; border-radius: 12px; color: var(--ke-ai-green-dark); background: #f0f6f2; font-size: .78rem; }
.ke-ai-tool-status small { margin-left: auto; color: var(--ke-ai-muted); }
.ke-ai-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #2e8b57; box-shadow: 0 0 0 4px rgba(46,139,87,.12); }
.ke-ai-live-dot.is-pending { background: #c8872b; box-shadow: 0 0 0 4px rgba(200,135,43,.13); }
.ke-ai-builder-grid { display: grid; grid-template-columns: minmax(300px,.92fr) minmax(0,1.08fr); gap: 26px; }
.ke-ai-upload-panel, .ke-ai-options { padding: 26px; border: 1px solid var(--ke-ai-line); border-radius: 22px; background: #fff; }
.ke-ai-step-label { display: flex; align-items: center; gap: 11px; margin-bottom: 21px; font-size: .88rem; font-weight: 850; }
.ke-ai-step-label b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--ke-ai-red); font-size: .68rem; }
.ke-ai-drop { position: relative; display: grid; min-height: 430px; padding: 25px; place-items: center; align-content: center; overflow: hidden; border: 2px dashed #c9cfc9; border-radius: 18px; color: var(--ke-ai-muted); background: #fbf8f3; text-align: center; cursor: pointer; }
.ke-ai-drop:hover { border-color: var(--ke-ai-red); background: #fff8f3; }
.ke-ai-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ke-ai-drop strong, .ke-ai-drop small { display: block; }
.ke-ai-drop strong { color: var(--ke-ai-ink); }
.ke-ai-drop small { margin-top: 7px; font-size: .72rem; }
.ke-ai-upload-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 14px; place-items: center; border-radius: 18px; color: #fff; background: var(--ke-ai-green); font-size: 1.55rem; }
.ke-ai-drop img { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: cover; }
.ke-ai-drop.has-image img { display: block; }
.ke-ai-drop.has-image > span:not(.ke-ai-upload-icon), .ke-ai-drop.has-image > strong, .ke-ai-drop.has-image > small, .ke-ai-drop.has-image .ke-ai-upload-icon { display: none; }
.ke-ai-change { display: none; width: 100%; margin-top: 10px; padding: 10px; border: 0; color: var(--ke-ai-red-dark); background: transparent; font-weight: 800; cursor: pointer; }
.ke-ai-upload-panel.has-image .ke-ai-change { display: block; }
.ke-ai-options > label { display: block; margin-bottom: 16px; color: #38483f; font-size: .72rem; font-weight: 850; letter-spacing: .02em; }
.ke-ai-options label small { color: var(--ke-ai-muted); font-weight: 500; }
.ke-ai-options select, .ke-ai-options input[type="text"] { width: 100%; min-height: 48px; margin-top: 7px; padding: 10px 13px; border: 1px solid #cbd2cc; border-radius: 10px; color: var(--ke-ai-ink); background: #fff; font: inherit; font-size: .87rem; }
.ke-ai-options select:focus, .ke-ai-options input:focus { outline: 3px solid rgba(38,91,74,.13); border-color: var(--ke-ai-green); }
.ke-ai-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.ke-ai-field-row label { color: #38483f; font-size: .72rem; font-weight: 850; }
.ke-ai-consent { display: flex !important; gap: 10px; align-items: flex-start; padding: 13px; border-radius: 10px; background: #f7f2eb; color: var(--ke-ai-muted) !important; font-size: .68rem !important; font-weight: 550 !important; line-height: 1.5; }
.ke-ai-consent input { flex: 0 0 auto; margin-top: 3px; }
.ke-ai-hp { position: absolute !important; left: -9999px !important; }
.ke-ai-generate { width: 100%; min-height: 62px; padding: 11px 18px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg,var(--ke-ai-red),var(--ke-ai-red-dark)); box-shadow: 0 12px 28px rgba(200,88,62,.25); cursor: pointer; }
.ke-ai-generate span, .ke-ai-generate small { display: block; }
.ke-ai-generate span { font-size: .93rem; font-weight: 900; }
.ke-ai-generate small { margin-top: 3px; opacity: .78; }
.ke-ai-generate:hover:not(:disabled) { background: linear-gradient(135deg,var(--ke-ai-red-dark),#893522); transform: translateY(-1px); }
.ke-ai-generate:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .5; }
.ke-ai-frame-error { min-height: 20px; margin: 9px 0 0; color: #9b3525; font-size: .72rem; text-align: center; }
.ke-ai-loading { display: none; min-height: 690px; place-items: center; align-content: center; border-radius: 22px; text-align: center; background: radial-gradient(circle at 50% 45%,rgba(200,88,62,.12),transparent 28%),#f8f2e8; }
.ke-ai-loading.is-visible { display: grid; }
.ke-ai-loader { width: 64px; height: 64px; margin-bottom: 20px; border: 6px solid #ead8c9; border-top-color: var(--ke-ai-red); border-radius: 50%; animation: ke-ai-spin .9s linear infinite; }
.ke-ai-loading strong { font-family: Georgia,serif; font-size: 1.9rem; }
.ke-ai-loading small { margin-top: 8px; color: var(--ke-ai-muted); }
@keyframes ke-ai-spin { to { transform: rotate(360deg); } }
.ke-ai-result { display: none; }
.ke-ai-result.is-visible { display: block; }
.ke-ai-result-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 10px 0 20px; }
.ke-ai-result-head small { color: var(--ke-ai-red); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ke-ai-result-head h2, .ke-ai-plan h2 { margin: 5px 0 0; font-family: Georgia,serif; font-size: clamp(1.8rem,4vw,2.8rem); line-height: 1.08; }
.ke-ai-download, .ke-ai-again { padding: 11px 17px; border: 1px solid var(--ke-ai-green); border-radius: 999px; color: var(--ke-ai-green); background: #fff; font-size: .72rem; font-weight: 900; text-decoration: none; cursor: pointer; }
.ke-ai-download:hover, .ke-ai-again:hover { color: #fff; background: var(--ke-ai-green); }
.ke-ai-compare { position: relative; aspect-ratio: 3/2; overflow: hidden; border-radius: 22px; background: #e6e0d7; box-shadow: var(--ke-ai-shadow); }
.ke-ai-compare > img, .ke-ai-after-pane, .ke-ai-after-pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ke-ai-after-pane { overflow: hidden; width: 50%; border-right: 3px solid #fff; }
.ke-ai-after-pane img { width: calc(100vw - 70px); max-width: none; }
.ke-ai-compare input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ke-ai-before-label, .ke-ai-after-label { position: absolute; z-index: 3; top: 16px; padding: 7px 11px; border-radius: 999px; color: #fff; background: rgba(23,60,49,.82); font-size: .63rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ke-ai-before-label { left: 16px; }
.ke-ai-after-label { right: 16px; background: rgba(169,70,49,.88); }
.ke-ai-plan { margin-top: 25px; padding: 30px; border: 1px solid var(--ke-ai-line); border-radius: 22px; background: #fff; }
.ke-ai-plan > div:first-child > small { color: var(--ke-ai-red); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ke-ai-plan-changes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.ke-ai-plan-changes article { padding: 18px; border-radius: 13px; background: #f7f2eb; }
.ke-ai-plan-changes article b { display: block; color: var(--ke-ai-red-dark); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.ke-ai-plan-changes article strong { display: block; margin-top: 7px; font-family: Georgia,serif; font-size: 1.05rem; }
.ke-ai-plan-changes article p { margin: 6px 0 0; color: var(--ke-ai-muted); font-size: .75rem; }
.ke-ai-plan-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--ke-ai-line); }
.ke-ai-plan-bottom h3 { margin: 0 0 8px; font-family: Georgia,serif; }
.ke-ai-plan-bottom ul { margin: 0; padding-left: 1.1rem; color: var(--ke-ai-muted); font-size: .78rem; }
.ke-ai-budget-note { margin: 20px 0 0; padding: 14px 16px; border-left: 4px solid var(--ke-ai-red); background: #f4e4d7; font-size: .78rem; }
.ke-ai-expiry { margin: 13px 0 0; color: var(--ke-ai-muted); font-size: .66rem; }
.ke-ai-again { display: block; margin: 20px auto 0; }

@media (max-width: 960px) {
  .ke-ai-hero-grid, .ke-ai-two-col, .ke-ai-home-grid { grid-template-columns: 1fr; }
  .ke-ai-hero-visual { width: min(100%,650px); margin-inline: auto; }
  .ke-ai-material-board { width: min(100%,620px); margin-inline: auto; }
  .ke-ai-tool-heading { align-items: start; flex-direction: column; gap: 12px; }
  .ke-ai-frame { height: 1120px; }
  .ke-ai-builder-grid { grid-template-columns: 1fr; }
  .ke-ai-drop { min-height: 370px; }
}

@media (max-width: 820px) {
  .ke-ai-hero { padding-block: 75px; }
  .ke-ai-hero h1 { font-size: clamp(3.1rem,13vw,5rem); }
  .ke-ai-step-grid { grid-template-columns: 1fr; }
  .ke-ai-step-grid article:nth-child(2) { transform: none; }
  .ke-ai-step-grid article { min-height: 0; }
  .ke-ai-step-grid b { margin-bottom: 32px; }
  .ke-ai-tip-grid { grid-template-columns: 1fr; }
  .ke-ai-frame-wrap { padding: 5px; border-radius: 20px; }
  .ke-ai-frame { height: 1180px; border-radius: 15px; }
}

@media (max-width: 620px) {
  .ke-ai-tool { padding: 13px; }
  .ke-ai-tool-status { align-items: flex-start; flex-wrap: wrap; }
  .ke-ai-tool-status small { width: 100%; margin-left: 18px; }
  .ke-ai-upload-panel, .ke-ai-options { padding: 18px; }
  .ke-ai-drop { min-height: 300px; }
  .ke-ai-field-row, .ke-ai-plan-changes, .ke-ai-plan-bottom { grid-template-columns: 1fr; }
  .ke-ai-result-head { align-items: flex-start; flex-direction: column; }
  .ke-ai-after-pane img { width: calc(100vw - 26px); }
  .ke-ai-plan { padding: 21px; }
  .ke-ai-hero-visual { min-height: 390px; }
  .ke-ai-material-board { min-height: 390px; }
  .ke-ai-home-art { min-height: 310px; }
  .ke-ai-frame { height: 1240px; }
}
