/* Homa Cafe Startup Calculator v1.0.0 – fully scoped, RTL first. */
.homa-startup {
  --hsc-brand: #16845b;
  --hsc-ink: #162a27;
  --hsc-muted: #71817c;
  --hsc-line: #e4ebe8;
  --hsc-soft: #f5f9f6;
  --hsc-paper: #fff;
  --hsc-radius: 17px;
  width: 100%;
  max-width: 1180px;
  margin: 26px auto 50px;
  color: var(--hsc-ink);
  line-height: 1.75;
  font-family: inherit;
  font-size: 14px;
  text-align: right;
  direction: rtl;
}
.homa-startup, .homa-startup * { box-sizing: border-box; }
.homa-startup :is(h2,h3,p) { margin: 0; padding: 0; }
.homa-startup button, .homa-startup input { font: inherit; letter-spacing: normal; }
.homa-startup button { cursor: pointer; border: 0; }
.homa-startup a { text-decoration: none; }
.homa-startup button:focus-visible, .homa-startup a:focus-visible, .homa-startup input:focus-visible { outline: 3px solid #b4e7d0; outline-offset: 3px; }
.homa-startup .hsc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hsc-hero {
  overflow: hidden; position: relative; display: flex; min-height: 242px;
  align-items: center; justify-content: space-between; gap: 15px;
  padding: 34px 43px; border-radius: 25px;
  background: radial-gradient(ellipse at 13% 96%, rgba(68,167,118,.38), transparent 38%),linear-gradient(115deg,#173d35 5%,#124531 55%,#0d322b 100%);
  color: #fff;
}
.hsc-hero:before { content: ''; position: absolute; width: 410px; height: 410px; border: 1px solid rgba(255,255,255,.065); border-radius: 50%; left: -110px; top: -180px; pointer-events: none; }
.hsc-hero__content { z-index: 1; max-width: 705px; }
.hsc-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 750; color: #d1fbe3; margin-bottom: 12px; }
.hsc-kicker__dot, .hsc-live i { width: 8px; height: 8px; border-radius: 50%; background: #7df2ae; box-shadow: 0 0 0 4px rgba(125,242,174,.15); display: inline-block; }
.hsc-hero h2 { color: #fff; font-size: clamp(23px,3.5vw,34px); font-weight: 850; line-height: 1.6; margin-bottom: 10px; }
.hsc-hero p { color: #cfe5d9; font-size: 14px; line-height: 2; max-width: 625px; }
.hsc-hero__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.hsc-hero__chips span { font-size: 11px; font-weight: 700; padding: 5px 10px; color: #eaffef; border: 1px solid rgba(201,244,212,.23); background: rgba(255,255,255,.075); border-radius: 30px; }
.hsc-hero__art { width: 170px; height: 175px; position: relative; flex: 0 0 170px; display: flex; justify-content: center; align-items: center; }
.hsc-art__ring { position: absolute; inset: 1px; border: 1px solid rgba(221,255,219,.23); border-radius: 50%; box-shadow: 0 0 0 19px rgba(255,255,255,.025),0 0 0 42px rgba(255,255,255,.018); }
.hsc-art__cup { font-size: 79px; line-height: 1; z-index: 1; filter: drop-shadow(0 8px 19px rgba(0,0,0,.3)); transform: rotate(-9deg); }
.hsc-art__cost { display: block; position: absolute; left: -8px; bottom: -1px; padding: 9px 13px; font-size: 12px; text-align: center; border-radius: 13px; color: #164a3a; background: #f9f5da; line-height: 1.65; box-shadow: 0 9px 25px rgba(0,0,0,.15); transform: rotate(-6deg); }
.hsc-art__cost b { font-size: 15px; }
.hsc-toolbar { display:flex; justify-content: space-between; align-items: center; gap: 20px; margin: 25px 0 14px; }
.hsc-toolbar strong { font-size: 18px; font-weight: 850; }
.hsc-toolbar p { color: var(--hsc-muted); font-size: 12px; margin-top: 3px; }
.hsc-toolbar__buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.hsc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 11px; padding: 9px 15px; font-size: 12px; line-height: 1.5; font-weight: 750; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.hsc-btn:active { transform: translateY(1px); }
.homa-startup .hsc-btn--primary { background: var(--hsc-brand); color: #fff; border: 1px solid var(--hsc-brand); }
.homa-startup .hsc-btn--primary:hover { background: #0d6247; color: #fff; }
.homa-startup .hsc-btn--secondary { color: var(--hsc-brand); background: #ecf7f0; border: 1px solid #d1e9d9; }
.homa-startup .hsc-btn--secondary:hover { background: #dff1e6; }
.homa-startup .hsc-btn--ghost { color: #677a73; background: #fff; border: 1px solid #dfe7e2; }
.homa-startup .hsc-btn--ghost:hover { color: var(--hsc-ink); background: #f6f8f5; }
.hsc-sample-note { padding: 12px 16px; margin: 0 0 17px; border-radius: 11px; border: 1px solid #ffe5a6; background: #fff9e8; color: #805e1e; font-size: 12px; }
.hsc-sample-note[hidden] { display: none; }
.hsc-layout { display: grid; grid-template-columns: minmax(0,1fr) 342px; align-items: start; gap: 18px; }
.hsc-editor { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hsc-card { background: var(--hsc-paper); padding: 22px 24px 19px; border: 1px solid var(--hsc-line); border-radius: var(--hsc-radius); box-shadow: 0 5px 24px rgba(28,79,53,.035); min-width: 0; }
.hsc-section-head { display:flex; align-items:flex-start; gap: 13px; margin-bottom: 17px; }
.hsc-section-head__number { display:flex; align-items:center; justify-content:center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 11px; color: #147d55; background: #ecf8f1; font-size: 14px; font-weight: 850; }
.hsc-section-head__text { flex: 1; min-width: 0; }
.hsc-section-head h3 { font-size: 16px; font-weight: 850; color: #1d352c; line-height: 1.75; }
.hsc-section-head p { color: #8a9992; font-size: 11px; margin-top: 2px; line-height: 1.9; }
.hsc-section-head__tag { font-size: 10px; color: #597b6c; padding: 3px 8px; white-space: nowrap; background: #f0f7f2; border-radius: 8px; margin-top: 7px; }
.hsc-labeled-field { display: block; max-width: 370px; width: 100%; }
.hsc-labeled-field > span { display: block; color: #455a4e; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.hsc-input-unit { position:relative; }
.hsc-input-unit input { display: block; width:100%; height:46px; padding: 9px 13px 9px 73px; border: 1px solid #dce7e0; background: #fcfdfc; color: #264238; border-radius: 10px; text-align: right; direction: ltr; font-variant-numeric: tabular-nums; }
.hsc-input-unit input:focus { border-color: #61ba8e; background: #fff; outline: none; box-shadow: 0 0 0 3px #dff5e8; }
.hsc-input-unit em { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 11px; color:#809589; font-style: normal; pointer-events:none; }
.hsc-small-tip { font-size: 11px; color: #85958a; line-height:2; margin-top: 11px !important; }
.hsc-entry-head { display:grid; grid-template-columns: minmax(0,1fr) minmax(145px,.75fr) 32px; gap: 9px; padding: 0 6px 7px; font-weight: 750; color: #8d9e95; font-size:10px; }
.hsc-entry { position:relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(145px,.75fr) 32px; gap: 9px; padding: 5px 0 25px; align-items: start; }
.hsc-entry__name, .hsc-entry__amount { min-width:0; position:relative; display:block; }
.hsc-input { min-width: 0; width:100%; height:43px; border: 1px solid #e2e9e4; border-radius: 9px; background: #fff; color: #31443a; padding: 8px 11px; font-size: 12px; font-weight: 500; }
.hsc-input:focus { outline: none; border-color:#83cba1; box-shadow: 0 0 0 2px #eff9f0; }
.hsc-input--money { padding-left: 56px; text-align: right; direction: ltr; font-variant-numeric: tabular-nums; }
.hsc-entry__currency { position:absolute; left: 10px; top: 13px; color: #92a097; font-size: 10px; pointer-events:none; }
.hsc-entry__delete { display:flex; align-items:center; justify-content:center; width:32px; height:43px; border-radius:8px; background: #fafafa; color: #a1aaa4; font-size: 22px !important; font-weight: 400 !important; line-height:1 !important; padding:0 !important; }
.hsc-entry__delete:hover { color: #c9444a; background: #fff2f2; }
.hsc-entry__formatted { position: absolute; top: 46px; left: 45px; text-align: left; color: #98a59e; font-size:10px; font-variant-numeric: tabular-nums; }
.hsc-empty { border: 1px dashed #e0ebe2; border-radius: 9px; padding: 17px; font-size:12px; color:#97a69a; }
.hsc-category__footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-top:13px; margin-top:4px; border-top: 1px solid #edf1ee; }
.hsc-add-btn { background:transparent; color:var(--hsc-brand); border: 1px dashed #a5d9b7 !important; font-size:11px; padding:8px 14px; border-radius:9px; font-weight:750; }
.hsc-add-btn:hover { background:#effaf2; }
.hsc-category__subtotal { display: flex; align-items: center; gap: 8px; }
.hsc-category__subtotal span { font-size:11px; color:#8a998d; }
.hsc-category__subtotal b { font-weight: 850; font-size:17px; color:#214c35; font-variant-numeric: tabular-nums; }
.hsc-settings__fields { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.hsc-settings .hsc-labeled-field { max-width:100%; }
.hsc-results { min-width:0; }
.hsc-summary { border: 1px solid #e0eae2; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(25,80,53,.045); background: #fff; position: sticky; top: 20px; }
.hsc-summary__top { padding: 21px 24px 18px; background: #eff7f0; border-bottom: 1px solid #daeddf; }
.hsc-live { display:inline-flex; align-items: center; gap: 9px; margin-bottom: 11px; font-size:10px; font-weight:750; color: #16845b; }
.hsc-live i { width:7px; height:7px; background:#20a56a; box-shadow:none; }
.hsc-summary__top h3 { font-size: 19px; color:#16372a; font-weight: 850; line-height:1.7; }
.hsc-summary__top p { color:#6f8c79; font-size:11px; }
.hsc-summary__body { padding: 19px 23px 23px; }
.hsc-grand-total { display:flex; flex-direction:column; align-items:flex-start; padding-bottom: 18px; }
.hsc-grand-total span { color:#596e60; font-size:12px; font-weight:750; }
.hsc-grand-total strong { font-size: clamp(29px,3vw,39px); letter-spacing:-.8px; font-weight: 900; color:#0f6f49; line-height: 1.6; direction:ltr; font-variant-numeric: tabular-nums; }
.hsc-grand-total small { font-size:12px; color:#819b8b; }
.hsc-breakdown__bar { display:flex; flex-direction:row; height: 12px; overflow:hidden; background: #eaf0ea; border-radius: 100px; margin-bottom:13px; }
.hsc-breakdown__segment--startup { background:#158959; }
.hsc-breakdown__segment--deposit { background:#4b80b5; }
.hsc-breakdown__segment--buffer { background:#ddb665; }
.hsc-breakdown__segment--contingency { background:#aa8bbd; }
.hsc-breakdown__legend { display:grid; grid-template-columns:1fr 1fr; gap: 7px 14px; padding-bottom: 18px; border-bottom: 1px solid #eef1ee; }
.hsc-breakdown__legend-item { display:flex; align-items:center; gap:6px; min-width:0; white-space:nowrap; font-size:10px; color:#748279; }
.hsc-breakdown__legend-item span { overflow:hidden; text-overflow:ellipsis; }
.hsc-breakdown__legend-item b { margin-right:auto; font-size:11px; color:#57685d; font-weight:750; }
.hsc-breakdown__dot { width:8px; height:8px; display:inline-block; flex:0 0 8px; border-radius:3px; }
.hsc-breakdown__dot--startup { background:#158959; }
.hsc-breakdown__dot--deposit { background:#4b80b5; }
.hsc-breakdown__dot--buffer { background:#ddb665; }
.hsc-breakdown__dot--contingency { background:#aa8bbd; }
.hsc-metrics { padding: 9px 0 4px; }
.hsc-metrics > div { display:flex; align-items: baseline; justify-content: space-between; gap: 9px; padding: 10px 0; font-size:11px; border-bottom:1px solid #f1f4f0; }
.hsc-metrics > div:last-child { border-bottom:0; }
.hsc-metrics span { color:#708278; }
.hsc-metrics b { color:#233f31; font-size:14px; font-weight:850; white-space: nowrap; font-variant-numeric:tabular-nums; }
.hsc-summary__info { padding: 11px 12px; border-radius:9px; background:#f3f8f2; color:#597365; font-size:11px; line-height:2; margin-top: 11px; }
.hsc-result-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top: 14px; }
.hsc-result-actions .hsc-btn { padding:9px 7px; }
.hsc-result-actions .hsc-btn:last-child { grid-column: span 2; }
.hsc-feedback { color:#19875c; font-size:11px; margin-top:8px; min-height:18px; line-height:1.7; }
.hsc-feedback[data-error='yes'] { color:#b34641; }
.hsc-note { padding:18px 20px; border:1px solid #ebe8d8; border-radius:13px; margin-top:15px; background:#fffbf2; }
.hsc-note strong { display:block; color:#8b6e34; font-size:12px; margin-bottom:5px; }
.hsc-note p { color:#9a8661; font-size:11px; line-height:2.15; }
.hsc-cta { display:flex; align-items:center; gap:15px; padding:23px; margin-top:24px; background:#f1f8f3; border: 1px solid #dcece0; border-radius:17px; }
.hsc-cta__icon { width:45px; height:45px; display:flex; align-items:center; justify-content:center; flex:0 0 45px; background:#d9f0e1; border-radius:13px; font-size:23px; color:#13814e; }
.hsc-cta > div:nth-child(2) { flex:1; min-width:0; }
.hsc-cta h3 { font-size:16px; color:#154a32; font-weight:850; }
.hsc-cta p { color:#638574; font-size:12px; margin-top:3px; line-height:1.9; }
.homa-startup .hsc-cta__button { display:inline-flex; gap:10px; align-items:center; justify-content:center; flex-shrink:0; min-height:43px; padding:9px 15px; border-radius:10px; color:#fff; background:var(--hsc-brand); font-size:12px; font-weight:800; white-space:nowrap; }
.homa-startup .hsc-cta__button:hover { color:#fff; background:#0c6945; }
@media (max-width: 1000px) {
  .hsc-layout { grid-template-columns:minmax(0,1fr) 305px; gap:13px; }
  .hsc-card { padding:18px 16px; }
  .hsc-summary__body { padding:17px; }
  .hsc-summary__top { padding:17px; }
}
@media (max-width: 780px) {
  .homa-startup { margin-top:10px; }
  .hsc-layout { grid-template-columns:1fr; }
  .hsc-summary { position:static; }
  .hsc-results { display: flex; flex-direction: column; }
  .hsc-summary__body { padding:22px; }
  .hsc-toolbar { align-items:flex-start; }
  .hsc-hero { padding:26px; min-height:225px; }
}
@media (max-width: 580px) {
  .hsc-hero { padding:25px 20px; min-height:0; }
  .hsc-hero__art { display:none; }
  .hsc-hero h2 { font-size:24px; }
  .hsc-hero p { font-size:12px; }
  .hsc-hero__chips { margin-top:16px; }
  .hsc-toolbar { flex-direction:column; gap:12px; margin-top:19px; }
  .hsc-toolbar strong { font-size:16px; }
  .hsc-toolbar__buttons { width:100%; }
  .hsc-toolbar__buttons .hsc-btn { flex:1; }
  .hsc-card { border-radius:13px; padding:17px 13px; }
  .hsc-section-head h3 { font-size:15px; }
  .hsc-section-head__number { width:32px; height:32px; flex-basis:32px; }
  .hsc-section-head__tag { display:none; }
  .hsc-entry-head { display:none; }
  .hsc-entry { grid-template-columns:minmax(0,1fr) 32px; gap:8px; border-bottom:1px dashed #e9eee8; padding:10px 0 22px; }
  .hsc-entry__name { grid-column: 1 / 2; }
  .hsc-entry__amount { grid-column: 1 / 2; grid-row:2; }
  .hsc-entry__delete { grid-column:2; grid-row: 1 / 3; align-self:center; }
  .hsc-entry__formatted { top:auto; bottom:4px; }
  .hsc-settings__fields { grid-template-columns:1fr; }
  .hsc-cta { flex-wrap: wrap; padding:16px; }
  .hsc-cta__button { width:100%; }
  .hsc-cta h3 { font-size:14px; }
}
@media (prefers-reduced-motion: reduce) {
  .homa-startup .hsc-btn { transition:none; }
}
@media print {
  @page { size: A4; margin: 13mm; }
  body * { visibility: hidden !important; }
  .homa-startup, .homa-startup * { visibility: visible !important; }
  .homa-startup { position: absolute; top: 0; right:0; left:0; width:100%; max-width:none; margin:0; padding:0; font-size:10px; }
  .hsc-hero { border-radius:0; background:#f0f7f2 !important; color:#123c29 !important; min-height:0; padding:15px !important; }
  .hsc-hero h2, .hsc-hero p, .hsc-kicker { color:#123c29 !important; }
  .hsc-hero__chips, .hsc-hero__art, .hsc-toolbar__buttons, .hsc-add-btn, .hsc-entry__delete, .hsc-result-actions, .hsc-feedback, .hsc-cta, .hsc-sample-note { display:none !important; }
  .hsc-layout { display:block; }
  .hsc-card, .hsc-summary, .hsc-note { box-shadow:none; break-inside:avoid; page-break-inside:avoid; margin-bottom:8px; padding:10px; }
  .hsc-results { margin-top:16px; }
  .hsc-entry { padding-bottom:5px; }
  .hsc-entry__formatted { display:none; }
  .hsc-input, .hsc-input-unit input { height:30px; background:transparent; border:0; padding:5px; }
  .hsc-input-unit em { display:none; }
  .hsc-entry__currency { top:7px; }
  .hsc-summary__top { padding:9px; }
  .hsc-summary__body { padding:10px; }
  .hsc-grand-total strong { font-size:29px; }
}
