:root {
  --ink: #3a2618;
  --ink-2: #4e3524;
  --teal: #2e7d4f;
  --brass: #2e7d4f;
  --green-light: #9fd8ab;
  --brass-soft: #e3f1e7;
  --paper: #ffffff;
  --card: #faf6f0;
  --line: #e8ded2;
  --text: #2b2119;
  --muted: #6e5f52;
  --radius: 14px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand { gap: 12px; }
.brand-name { border-left: 1px solid var(--line); padding-left: 12px; }
.site-footer .brand-name { border-left-color: rgba(255,255,255,.18); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: .2px; }
.brand-name small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: -2px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { background: var(--brass-soft); color: var(--ink); }
.nav-links .cta { background: var(--ink); color: #fff; }
.nav-links .cta:hover { background: var(--ink-2); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; padding: 12px 20px 18px; background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #faf6f1;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%238fd19e' stroke-width='1.4'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Cpath d='M0 40h12M68 40h12M40 0v12M40 68v12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.hero .wrap { position: relative; padding: 96px 0 104px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
.hero .eyebrow { color: var(--green-light); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 20px; color: #fff; }
.hero h1 em { font-style: italic; color: #9fd8ab; }
.hero p.lead { font-size: 1.15rem; color: #e6dbd0; max-width: 36em; margin: 0 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; }
.btn-brass { background: var(--brass); color: #ffffff; }
.btn-brass:hover { background: #3f9a63; color: #ffffff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }

.meaning {
  background: rgba(255,255,255,.05); border: 1px solid rgba(143,209,158,.35);
  border-radius: var(--radius); padding: 28px;
}
.meaning .ar { font-size: 2.4rem; font-family: "Amiri", var(--serif); color: #9fd8ab; line-height: 1.2; margin: 0 0 4px; direction: rtl; text-align: right; }
.meaning .ar-logo { display: block; height: 72px; width: auto; margin: 0 0 14px auto; }
.meaning .tr { margin: 0 0 12px; font-family: var(--serif); font-style: italic; color: #fff; font-size: 1.15rem; }
.meaning p { margin: 0; color: #e6dbd0; font-size: .97rem; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 64px 0 72px; }
}

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.15; margin: 0 0 12px; color: var(--ink); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.alt { background: var(--card); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.alt .card { background: var(--paper); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brass-soft); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--ink); }
.card p { margin: 0 0 14px; color: var(--muted); font-size: .97rem; }
.card ul { margin: auto 0 0; padding: 0; list-style: none; font-size: .9rem; }
.card li { padding: 5px 0 5px 20px; position: relative; border-top: 1px dashed var(--line); }
.card li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; background: var(--brass); transform: rotate(45deg); }

/* Apps */
.app-card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.app-mark { width: 72px; height: 72px; border-radius: 18px; background: #15171a; color: #f4f1ea; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .5px; }
.app-card h3 { margin: 0 0 2px; font-size: 1.3rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--brass-soft); color: #22603c; margin-bottom: 10px; }
.tag.soon { background: #efe6dc; color: #5a3d28; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.app-links a { font-weight: 600; font-size: .93rem; }
.placeholder { border-style: dashed; background: transparent !important; }
.placeholder .app-mark { background: transparent; border: 2px dashed var(--line); color: var(--muted); }
@media (max-width: 520px) { .app-card { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 26px 22px 22px; border-top: 3px solid var(--ink); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--brass); display: block; margin-bottom: 6px; }
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.promises div { padding-left: 18px; border-left: 3px solid var(--brass); }
.promises h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--ink); }
.promises p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside p { color: var(--muted); }
.contact-aside .box { background: var(--ink); color: #efe6dc; border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.contact-aside .box h3 { margin: 0 0 8px; color: #fff; font-size: 1.02rem; }
.email-line { margin-top: 18px; font-weight: 500; }
.contact-aside .box p { color: #e6dbd0; margin: 0; font-size: .95rem; }

form.contact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid #d6c9ba; border-radius: 10px; padding: 11px 13px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46,125,79,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--teal); font-weight: 600; }
.form-status.err { color: #a3361f; font-weight: 600; }
button[disabled] { opacity: .6; cursor: wait; }

/* Footer */
.site-footer { background: var(--ink); color: #d6c8bb; padding: 48px 0 32px; font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: #b8a594; }
.site-footer a { color: #9fd8ab; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #b8a594; }

/* Policy pages */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--ink); margin: 0 0 6px; line-height: 1.15; }
.doc .updated { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.4rem; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 1.02rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--card); color: var(--ink); }
.note { background: var(--brass-soft); border-radius: 10px; padding: 14px 18px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
