/* ==========================================================================
   Kamra PMS  ·  shared styles
   ========================================================================== */
:root {
  /* Official Kamra palette (branding/README.md) */
  --green: #1e7b4f;      /* Kamra Green */
  --green-2: #17663f;    /* darker, hover */
  --emerald: #56c589;    /* Mint, the door dot */
  --emerald-soft: #e4f4ea;
  --ink: #1c3f38;        /* wordmark ink */
  --muted: #5a6f65;
  --bg: #ffffff;
  --bg-soft: #f2f8f4;
  --line: #dfeae4;
  --dark: #103127;       /* deep green for dark sections */
  --shadow: 0 1px 2px rgba(16, 40, 30, 0.04), 0 12px 32px rgba(16, 40, 30, 0.06);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--green-2);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft);
}
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: #7fe3ab; }
.eyebrow.light::before { box-shadow: 0 0 0 4px rgba(47,189,117,0.18); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(11,90,56,0.22); }
.btn-primary:hover { transform: translateY(-2px); background: var(--green-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #c9ddd1; }

/* nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 22px;
  letter-spacing: -0.03em; color: var(--ink);
}
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); align-self: center; margin: 0 2px; }
.brand .pms { color: var(--green); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link { font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links a.link:hover { color: var(--ink); }

/* hero */
.hero { padding: 74px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; margin: 20px 0 0; }
.hero h1 .hl { color: var(--green); }
.hero .lead { font-size: 19px; color: var(--muted); margin-top: 22px; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.builton {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14.5px;
}
.builton img { height: 21px; width: auto; }

/* agent hero card */
.agent-card {
  background: linear-gradient(160deg, #f2fbf6 0%, #eaf6ef 100%);
  border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow);
}
.agent-logo { display: block; width: 118px; height: auto; margin: 6px auto 20px; }
.agent-head {
  display: flex; align-items: center; gap: 10px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 14px; color: var(--green); margin-bottom: 16px;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(47,189,117,0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,189,117,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(47,189,117,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,189,117,0); }
}
.bubble {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 15px; font-size: 14.5px; margin-bottom: 11px; box-shadow: 0 2px 8px rgba(16,40,30,0.03);
}
.bubble.me { background: var(--green); color: #fff; border-color: var(--green); margin-left: 34px; }
.bubble .who { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; display: block; margin-bottom: 3px; }
.bubble.ai { margin-right: 34px; }
.bubble.ai .who { color: var(--green); }

/* sections */
section { padding: 66px 0; }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.soft { background: var(--bg-soft); }

/* future band */
.future {
  background: linear-gradient(150deg, #1e7b4f, #0e3527);
  color: #fff; border-radius: 28px; padding: 60px 52px; text-align: center;
}
.future h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
.future p { color: rgba(255,255,255,0.86); font-size: 19px; margin: 20px auto 0; max-width: 60ch; }
.future .kicker { font-family: "Sora", sans-serif; font-weight: 700; color: var(--emerald); font-size: 17px; letter-spacing: 0.02em; }

/* feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3e6da; }
.ficon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--emerald-soft); color: var(--green); margin-bottom: 16px; }
.ficon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card.star { background: linear-gradient(160deg, #0b5a38 0%, #0e6e44 100%); border-color: transparent; color: #fff; }
.card.star .ficon { background: rgba(255,255,255,0.16); color: #fff; }
.card.star p { color: rgba(255,255,255,0.82); }
.card.star:hover { box-shadow: 0 18px 40px rgba(11,90,56,0.3); }

/* what-you-can-do : console */
.do-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.mcp-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  background: var(--emerald-soft); color: var(--green); border: 1px solid #cdeeda;
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
.mcp-badge svg { width: 15px; height: 15px; }
.console {
  background: var(--dark); border-radius: 22px; padding: 12px 8px; box-shadow: 0 20px 50px rgba(8,28,20,0.28);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.console-bar { display: flex; gap: 7px; padding: 12px 16px 14px; }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.console-bar i:nth-child(1){ background:#ff5f57; } .console-bar i:nth-child(2){ background:#febc2e; } .console-bar i:nth-child(3){ background:#28c840; }
.line { padding: 11px 18px; border-top: 1px solid rgba(255,255,255,0.05); }
.line .u { color: #eaf4ef; font-size: 14px; }
.line .u .caret { color: var(--emerald); font-weight: 700; margin-right: 9px; }
.line .r { color: #86a396; font-size: 13px; margin-top: 5px; padding-left: 22px; }
.line .r::before { content: "↳ "; color: var(--emerald); }

/* ask AI */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ai-logo { width: 44px; height: 44px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-soft); }
.ai-logo svg { width: 28px; height: 28px; }
.ai-card h3 { font-size: 18px; }
.ai-card p { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.ai-card .btn { width: 100%; justify-content: center; margin-top: auto; }
.copy-btn { background: none; border: 0; color: var(--green); font-size: 12.5px; font-weight: 600; cursor: pointer; margin-top: 10px; font-family: "Inter", sans-serif; }
.copy-btn:hover { text-decoration: underline; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; transition: background 0.15s ease, border-color 0.15s ease; }
a.chip:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }

/* AI band */
.band { border-radius: 26px; padding: 52px 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.band.dark { background: linear-gradient(150deg, #1e7b4f, #0e3527); color: #fff; }
.band.dark h2 { font-size: clamp(26px, 3.4vw, 38px); }
.band.dark p { color: rgba(255,255,255,0.84); font-size: 17px; margin-top: 16px; }

/* reason cards (why frappe / open source) */
.reason { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.reason .card { display: flex; gap: 16px; align-items: flex-start; }
.reason .num { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: #fff; font-family: "Sora", sans-serif; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

/* name story teaser */
.name-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.word-map { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.word-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.word-row:last-child { border-bottom: 0; }
.word-row .w { font-family: "Sora", sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); }
.word-row .w small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 8px; font-family: "Inter", sans-serif; }
.word-row .m { color: var(--green); font-weight: 600; font-size: 14px; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 4px; font-family: "Sora", sans-serif;
  font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 24px; font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 4px 20px; color: var(--muted); font-size: 16px; max-width: 68ch; }

/* partners */
.partner-card { display: flex; flex-direction: column; padding: 30px; }
.partner-logo-wrap { height: 46px; display: flex; align-items: center; margin-bottom: 22px; }
.partner-logo { max-height: 40px; width: auto; max-width: 210px; object-fit: contain; }
.partner-card h3 { font-size: 20px; margin-bottom: 8px; }
.partner-card p { color: var(--muted); font-size: 15.5px; }
.partner-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.partner-links .btn { padding: 11px 18px; font-size: 14px; }

/* hotel cta */
.hotel-cta { text-align: center; background: linear-gradient(160deg, #f2fbf6, #e9f6ef); border: 1px solid var(--line); border-radius: 26px; padding: 56px 32px; }
.hotel-cta h2 { font-size: clamp(28px, 3.6vw, 40px); }
.hotel-cta p { color: var(--muted); font-size: 18px; margin: 16px auto 30px; max-width: 52ch; }
.hotel-cta .cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.muted-note { font-size: 14.5px; color: var(--muted); margin-top: 22px; }
.muted-note a { color: var(--green); font-weight: 600; }

/* footer */
footer { background: #0c2a20; color: #cfe0d7; padding: 56px 0 34px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; align-items: flex-start; }
footer .brand { color: #fff; }
footer .brand .pms { color: var(--emerald); }
.foot-col { display: flex; flex-direction: column; gap: 20px; align-items: flex-end; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; justify-content: flex-end; }
.foot-links a:hover { color: #fff; }
.foot-frappe { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #7f978b; opacity: 0.85; transition: opacity 0.15s ease; }
.foot-frappe:hover { opacity: 1; }
.foot-frappe img { height: 17px; width: auto; filter: invert(1) brightness(1.7); }
.foot-ask { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.foot-ask-label { color: #9db3a8; font-size: 13.5px; margin-right: 2px; }
.foot-ask a { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,0.18); color: #eaf4ef; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: background 0.15s ease, border-color 0.15s ease; }
.foot-ask a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.34); }
.foot-bottom { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 14px; color: #9db3a8; }
.foot-bottom .made { display: inline-flex; align-items: center; gap: 8px; }
.foot-bottom .made b { color: #eaf4ef; font-weight: 600; }
.pin { color: var(--emerald); display: inline-flex; }

/* story page */
.article { max-width: 760px; margin: 0 auto; padding: 20px 0 20px; }
.article .kicker { color: var(--green-2); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 13px; }
.article h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin: 16px 0 8px; }
.article .sub { font-size: 20px; color: var(--muted); margin-bottom: 40px; }
.article h2 { font-size: 28px; margin: 44px 0 14px; }
.article h3 { font-size: 20px; margin: 30px 0 10px; }
.article p { font-size: 17px; color: #33443c; margin-bottom: 16px; }
.article p.big { font-size: 19px; color: var(--ink); }
.article ul { padding-left: 20px; color: #33443c; font-size: 17px; }
.article li { margin-bottom: 10px; }
.article .callout { background: var(--bg-soft); border-left: 3px solid var(--emerald); border-radius: 0 14px 14px 0; padding: 20px 24px; margin: 26px 0; font-size: 18px; color: var(--ink); }
.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 600; font-size: 15px; margin-bottom: 24px; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid, .do-grid, .name-teaser, .band { grid-template-columns: 1fr; gap: 40px; }
  .band { padding: 40px 30px; }
  .grid-3, .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a.link { display: none; }
  .future { padding: 44px 28px; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .ai-grid, .reason { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 10px; }
  .hero h1 { font-size: 33px; }
  .hero .lead { font-size: 17px; max-width: none; }
  section { padding: 52px 0; }
  .future { padding: 40px 24px; }
  .future h2 { font-size: 26px; }
  .future p, .band.dark p { font-size: 16px; }
  .section-head h2 { font-size: 26px; }
  .name-teaser h2, #agents h2 { font-size: 26px !important; }
  .console { overflow-x: auto; }
  .line .u, .line .r { overflow-wrap: anywhere; }
  .foot-grid { flex-direction: column; }
  .foot-col { align-items: flex-start; }
  .foot-links { justify-content: flex-start; }
  .foot-bottom { flex-direction: column; }
  .nav-inner .btn-primary { padding: 10px 16px; font-size: 14px; }
}
