/* Dedekto site: the app's COZY palette (src/components/theme.ts).
   No inline styles or scripts (strict CSP in firebase.json).
   Language switch without JS: #tr is shown by default, #en when it is the URL target. */
:root {
  --bg: #FFF6EC; --surface: #FFFDF9; --soft: #FBEBDD; --border: #EADBC8;
  --text: #3C2F2F; --muted: #7A5F55; --accent: #C25A36; --accent-dark: #9E4426;
  --yellow: #FFF1C9; --green: #2F7D5B;
  --radius: 24px; --shadow: 0 10px 30px rgba(120, 72, 40, 0.10);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 246, 236, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .inner { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.3px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 3px 8px rgba(120, 72, 40, 0.18); }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.topbar nav a {
  white-space: nowrap; padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px;
}
.topbar nav a:hover { background: var(--soft); color: var(--text); }
.topbar nav a.active { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 2px var(--border); }
.lang { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; }
.lang a { padding: 5px 12px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 14px; color: var(--muted); }
.lang a.l-tr { background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px rgba(120, 72, 40, 0.15); }

/* Language switch */
.t-en, #en { display: none; }
body:has(#en:target) .t-tr, body:has(#en:target) #tr { display: none; }
body:has(#en:target) .t-en { display: inline-block; }
body:has(#en:target) #en { display: block; }
body:has(#en:target) .lang a.l-tr { background: none; color: var(--muted); box-shadow: none; }
body:has(#en:target) .lang a.l-en { background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px rgba(120, 72, 40, 0.15); }
#tr, #en { scroll-margin-top: 200px; }

/* Layout */
main { max-width: 1040px; margin: 0 auto; padding: 32px 20px 56px; }
.page { max-width: 780px; margin: 0 auto; }
.card {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px 30px; margin: 0 0 22px; box-shadow: var(--shadow);
}
.kicker { text-transform: uppercase; letter-spacing: 3px; font-weight: 900; font-size: 13px; color: var(--accent); margin: 0 0 6px; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.8px; margin: 0 0 12px; }
h2 { font-size: 22px; line-height: 1.3; margin: 28px 0 8px; }
h2:first-child { margin-top: 0; }
h3 { font-size: 18px; margin: 20px 0 4px; }
.lead { font-size: 19px; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.page-head .badge { width: 58px; height: 58px; border-radius: 18px; background: var(--yellow); display: grid; place-items: center; font-size: 28px; flex: none; }
.page-head h1 { margin: 0; }
ul { padding-left: 22px; }
li { margin: 4px 0; }

/* Home: hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
  background: linear-gradient(160deg, #FFF1C9 0%, #FFE3CC 55%, #FBD5C1 100%);
  border: 2px solid #F3D7B8; border-radius: 32px; padding: 44px 44px; box-shadow: var(--shadow);
}
.hero .app-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 8px 20px rgba(158, 68, 38, 0.28); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 52px); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pills li { margin: 0; background: rgba(255, 253, 249, 0.85); border: 2px solid #F0D2B4; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px; color: var(--accent-dark); }
.hero-phone { justify-self: center; }
.phone {
  width: 250px; border-radius: 36px; padding: 9px; background: #2E2622; box-shadow: 0 20px 44px rgba(60, 40, 30, 0.30);
}
.phone img { display: block; width: 100%; border-radius: 28px; }
.hero-phone .phone { transform: rotate(3deg); }

/* Home: screenshots */
.section-title { text-align: center; margin: 56px 0 22px; }
.section-title h2 { font-size: 30px; margin: 0 0 6px; letter-spacing: -0.4px; }
.section-title p { color: var(--muted); margin: 0; font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shot { text-align: center; }
.shot .phone { width: 100%; max-width: 220px; margin: 0 auto 12px; border-radius: 30px; padding: 7px; }
.shot .phone img { border-radius: 24px; }
.shot b { display: block; font-size: 16px; }
.shot span { color: var(--muted); font-size: 14px; }

/* Home: features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 2px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.feature .icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--yellow); }
.feature .icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(6n+2) .icon { background: #FDE2D6; }
.feature:nth-child(6n+3) .icon { background: #DDEFE6; }
.feature:nth-child(6n+3) .icon svg { stroke: #2F7D5B; }
.feature:nth-child(6n+4) .icon { background: #FDE2D6; }
.feature:nth-child(6n+5) .icon { background: #E3ECF8; }
.feature:nth-child(6n+5) .icon svg { stroke: #3E6FA8; }
.feature:nth-child(6n) .icon { background: #DDEFE6; }
.feature:nth-child(6n) .icon svg { stroke: #2F7D5B; }
.feature h3 { margin: 12px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Contact banner */
.contact {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--text); color: #FFF6EC; border-radius: 28px; padding: 26px 30px;
}
.contact h3 { margin: 0 0 2px; font-size: 20px; }
.contact p { margin: 0; opacity: 0.8; }
.button {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 800;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 6px 16px rgba(158, 68, 38, 0.35);
}
.button:hover { background: var(--accent-dark); }
.mail { font-weight: 800; }

/* FAQ */
details { border: 2px solid var(--border); border-radius: 18px; background: var(--surface); margin: 0 0 12px; overflow: hidden; }
summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 800; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 700; color: var(--accent); }
details[open] summary::after { content: "–"; }
details[open] summary { border-bottom: 2px solid var(--soft); }
details p { margin: 0; padding: 14px 20px 18px; color: var(--text); }

/* Steps (account deletion) */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 12px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--yellow); color: var(--accent-dark); font-weight: 900; display: grid; place-items: center;
}

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 20px; }
footer .inner { max-width: 1040px; margin: 0 auto; padding: 22px 20px 34px; display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); font-weight: 700; text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .spacer { flex: 1; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
  .hero .pills { justify-content: center; }
  .hero-phone .phone { width: 220px; transform: none; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; gap: 2px; }
  .topbar nav a { padding: 6px 11px; font-size: 14px; }
  .lang { margin-left: auto; }
  .card { padding: 22px 20px; }
  .features { grid-template-columns: 1fr; }
  .shot .phone { max-width: 170px; }
  .contact { text-align: center; justify-content: center; }
}
