/* Teklifhane marketing site: shared styles for landing, SEO and legal pages. */
:root {
  --desk: #e6eaf0; --surface: #ffffff; --ink: #18202f; --muted: #5d6677; --line: #d6dce5;
  --ink-blue: #2f3fa8; --ink-blue-dark: #232f82; --green: #0d7a55; --wa: #1a8f4c;
  --on-accent: #ffffff; --tint: #f3f5f9; --radius: 8px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #12161e; --surface: #1a202b; --ink: #e8ecf3; --muted: #9aa4b6; --line: #2c3442;
    --ink-blue: #8d9cff; --ink-blue-dark: #aab5ff; --green: #4cc596; --on-accent: #10142e; --tint: #212836; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --desk: #12161e; --surface: #1a202b; --ink: #e8ecf3; --muted: #9aa4b6; --line: #2c3442;
  --ink-blue: #8d9cff; --ink-blue-dark: #aab5ff; --green: #4cc596; --on-accent: #10142e; --tint: #212836; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--desk); color: var(--ink); font: 17px/1.6 'Onest', system-ui, sans-serif; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--ink-blue); text-underline-offset: 3px; }
a:hover { color: var(--ink-blue-dark); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink-blue); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink-blue); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.l { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 15px; display: none; }
.nav a.l:hover { background: var(--tint); }
@media (min-width: 760px) { .nav a.l { display: inline-block; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 6px; cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.2; }
.btn:hover { border-color: var(--muted); color: var(--ink); }
.btn.primary { background: var(--ink-blue); border-color: var(--ink-blue); color: var(--on-accent); }
.btn.primary:hover { background: var(--ink-blue-dark); border-color: var(--ink-blue-dark); color: var(--on-accent); }
.btn.big { padding: 14px 22px; font-size: 17px; }
.btn.small { padding: 7px 12px; font-size: 14px; }

/* hero */
.hero { padding: 36px 0 56px; }
.hero .wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; } .hero { padding: 64px 0 80px; } }
h1 { font-size: clamp(32px, 7.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 700; }
h1 em { font-style: normal; color: var(--ink-blue); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* the mock quote paper with the stamp */
.paper-stage { position: relative; padding: 8px 8px 30px; }
.paper { position: relative; background: #fff; color: #18202f; border-radius: 3px; padding: 22px 22px 30px; box-shadow: 0 1px 2px rgba(20,30,60,.1), 0 22px 44px -14px rgba(20,30,60,.35); transform: rotate(1.2deg); max-width: 440px; margin: 0 auto; font-size: 14px; line-height: 1.45; }
.paper h2 { font-family: 'Literata', Georgia, serif; font-size: 22px; margin: 0 0 2px; letter-spacing: -.01em; }
.paper .meta { color: #5d6677; font-size: 12.5px; margin: 0 0 14px; }
.paper table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.paper th { text-align: left; font-weight: 500; color: #5d6677; font-size: 12px; border-bottom: 1.5px solid #18202f; padding: 4px 0; }
.paper td { padding: 6px 0; border-bottom: 1px solid #e3e7ee; vertical-align: top; }
.paper th:last-child, .paper td:last-child { text-align: right; white-space: nowrap; }
.paper .sum td { border: 0; padding: 3px 0; color: #5d6677; }
.paper .sum tr.tot td { color: #0d7a55; font-weight: 700; font-size: 16px; border-top: 1.5px solid #18202f; padding-top: 8px; }
.paper .words { font-size: 12px; color: #5d6677; margin: 10px 0 0; font-style: italic; max-width: 60%; }
.paper .stamp { position: absolute; left: 34%; bottom: -78px; width: 150px; height: 150px; pointer-events: none; mix-blend-mode: multiply; opacity: .92; }
.paper .stamp svg { display: block; width: 100%; height: 100%; }
.paper .stamp.hit { animation: thunk .62s cubic-bezier(.2,.9,.25,1.1) .5s both; }
@keyframes thunk {
  0% { transform: scale(1.9) rotate(-18deg); opacity: 0; }
  55% { transform: scale(.94) rotate(-3deg); opacity: .98; }
  75% { transform: scale(1.03) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); opacity: .92; }
}
.paper.bump { animation: bump .22s ease-out 1.02s; }
@keyframes bump { 0% { transform: rotate(1.2deg) translateY(0); } 40% { transform: rotate(1.2deg) translateY(3px); } 100% { transform: rotate(1.2deg) translateY(0); } }
@media (prefers-reduced-motion: reduce) { .paper .stamp.hit, .paper.bump { animation: none; } html { scroll-behavior: auto; } }

/* sections */
section { padding: 56px 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
h2.sec { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 14px; }
.sec-lead { color: var(--muted); margin: 0 0 32px; max-width: 38em; font-size: 18px; }

/* pain */
.pain { display: grid; gap: 28px; }
@media (min-width: 800px) { .pain { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.wa-bubble { background: #dcf8c6; color: #1b2b17; border-radius: 10px 10px 10px 2px; padding: 12px 14px; font-size: 15px; max-width: 340px; box-shadow: 0 1px 1px rgba(0,0,0,.12); white-space: pre-line; margin: 0 0 12px; }
:root[data-theme="dark"] .wa-bubble { background: #1f3a2a; color: #dff3e3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa-bubble { background: #1f3a2a; color: #dff3e3; } }
.pain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.pain-list li { padding-left: 16px; border-left: 3px solid var(--ink-blue); }
.pain-list b { display: block; }

/* features: a ruled list rather than a card grid */
.feat { border-top: 1px solid var(--line); }
.feat > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
@media (min-width: 800px) { .feat > div { grid-template-columns: 280px 1fr; gap: 32px; } }
.feat h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--muted); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink-blue); color: var(--ink-blue); display: grid; place-items: center; font-weight: 700; font-size: 18px; transform: rotate(-6deg); }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); }

/* who */
.who { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.who li { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.band .who li { background: var(--tint); }

/* pricing */
.price-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .price-grid { grid-template-columns: 1fr 1.15fr; align-items: stretch; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--ink-blue); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .p { font-size: 38px; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 2px; }
.plan .p small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.plan li.no { color: var(--muted); }
.plan li.no::before { border: 0; width: 10px; height: 2px; background: var(--muted); top: .8em; transform: none; }
.compare { color: var(--muted); margin: 20px 0 0; max-width: 40em; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--ink-blue); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); max-width: 42em; }
.faq details > div p { margin: 0 0 10px; }

/* closing CTA */
.final { text-align: center; }
.final .stamp-final { width: 110px; height: 110px; margin: 0 auto 10px; }
.final .stamp-final svg { width: 100%; height: 100%; }
.final .cta-row { justify-content: center; }

/* footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; }
.foot .wrap { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 { margin: 0 0 10px; font-size: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink-blue); }
.foot p { margin: 8px 0 0; color: var(--muted); }

/* article and legal pages */
.article { padding: 36px 0 56px; }
.article h1 { font-size: clamp(28px, 6vw, 40px); }
.article h2 { font-size: 24px; letter-spacing: -.02em; margin: 40px 0 10px; line-height: 1.25; }
.article h3 { font-size: 19px; margin: 24px 0 6px; }
.article p, .article li { max-width: 40em; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.note { border-left: 3px solid var(--ink-blue); background: var(--surface); padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 20px 0; max-width: 40em; }
.sample { background: var(--surface); border: 1px dashed var(--muted); border-radius: 6px; padding: 16px 18px; white-space: pre-line; font-size: 15px; max-width: 40em; margin: 14px 0; }
.article table.t { border-collapse: collapse; width: 100%; max-width: 40em; margin: 14px 0; font-size: 15px; }
.article table.t th, .article table.t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.article table.t th { font-weight: 600; background: var(--tint); }

/* calculator */
.calc { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink-blue); border-radius: var(--radius); padding: 18px; margin: 24px 0 8px; max-width: 560px; }
.article .calc h2 { margin: 0 0 12px; font-size: 19px; }
.calc .fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.calc .full { grid-column: 1 / -1; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--muted); }
.calc input, .calc select { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 10px; font-size: 16px; color: var(--ink); }
.calc input:focus, .calc select:focus { border-color: var(--ink-blue); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-blue) 20%, transparent); }
.calc .seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.calc .seg label { flex: 1; flex-direction: row; justify-content: center; align-items: center; padding: 10px 6px; cursor: pointer; color: var(--ink); font-size: 14.5px; text-align: center; position: relative; }
.calc .seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.calc .seg label:has(input:checked) { background: var(--ink-blue); color: var(--on-accent); font-weight: 600; }
.calc .seg label:has(input:focus-visible) { outline: 2px solid var(--ink-blue); outline-offset: -3px; }
.res { margin: 16px 0 0; padding: 0; }
.res div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.res dt { color: var(--muted); }
.res dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.res .key { border-bottom: 0; padding-top: 12px; }
.res .key dd { color: var(--green); font-size: 20px; }
.calc .after { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.cta-box { margin: 36px 0 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 40em; }
.article .cta-box h2 { margin: 0 0 8px; }
.cta-box p { margin: 0 0 14px; }
.related { margin-top: 28px; font-size: 15px; }

/* rotated mock paper must not create sideways scroll on phones */
.paper-stage { overflow-x: clip; }
