/* DENARSOFT Restaurant Management: tanıtım sayfası ve giriş/kayıt ekranları.
   Fikir: mutfak yazıcısından çıkan sipariş fişi. Tek aile (Archivo, geniş kesim başlıklar), fişin içinde Plex Mono. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

body.brand {
  --navy: #14202f; --navy-2: #1d2c3f; --teal: #0f7b67; --teal-dark: #0a5c4d; --paper: #fbfbf8; --docket: #f6c945; --steel: #e6eaee;
  --ink: #14202f; --muted: #556270; --line: #cfd6dd; --surface: #ffffff; --bg: #f3f5f7; --brand: #0f7b67; --link: #0a5c4d;
  margin: 0; background: var(--bg); color: var(--ink); color-scheme: light;
  font: 17px/1.55 "Archivo", system-ui, sans-serif; font-stretch: 100%;
}
body.brand a { color: var(--link); }
body.brand :focus-visible { outline: 3px solid var(--docket); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Üst çubuk */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark img { height: 30px; width: auto; }
.mark span { font-weight: 800; font-stretch: 112%; font-size: 17px; line-height: 1.1; }
.mark small { display: block; font-weight: 500; font-stretch: 100%; color: var(--muted); font-size: 13px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; }
body.brand .btn-go { background: var(--teal); color: #fff; }
body.brand .btn-go:hover { background: var(--teal-dark); }
body.brand .site-nav .btn-go { color: #fff; min-height: 42px; padding: 0 16px; }

/* Ana bölüm */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 48px; align-items: start; padding-top: 72px; }
.hero h1 { margin: 0 0 22px; font-weight: 850; font-stretch: 118%; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.01em; max-width: 12ch; }
.hero-lead { margin: 0 0 30px; font-size: 21px; color: #c7d2dd; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding-bottom: 80px; }
body.brand .hero-actions a.import { color: #fff; font-weight: 600; }
.hero-trial { width: 100%; color: #9fb0c0; font-size: 15px; }

/* Yazıcı ve fiş */
.printer { position: relative; justify-self: center; width: min(330px, 100%); }
.printer-body { position: relative; z-index: 2; height: 74px; border-radius: 14px 14px 6px 6px; background: linear-gradient(#2c3e52, #22313f); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.printer-body::before { content: ""; position: absolute; left: 22px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 8px #39d98a; }
.printer-body::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 12px; height: 6px; border-radius: 3px; background: #0d151d; }
.ticket-clip { position: relative; z-index: 1; margin: -12px 34px 0; overflow: hidden; padding-bottom: 6px; }
.ticket { background: var(--paper); color: #1b1b1b; font: 500 14px/1.5 "Plex Mono", ui-monospace, monospace; padding: 26px 20px 30px; white-space: pre; box-shadow: 0 18px 30px rgba(0,0,0,.35);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 6px 0, transparent 6px, #000 6.5px) bottom left / 12px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 6px 0, transparent 6px, #000 6.5px) bottom left / 12px 10px repeat-x; }
.ticket b { font-weight: 500; font-size: 18px; }
.ticket .rule { color: #8d8d86; }
@media (prefers-reduced-motion: no-preference) {
  .ticket { animation: feed 2.6s steps(26, end) .5s both; }
  @keyframes feed { from { transform: translateY(-100%); } to { transform: translateY(0); } }
}

/* Bir sipariş nasıl ilerler: gerçek bir sıra */
.flow { background: var(--steel); padding: 80px 0 88px; }
.flow h2, .more h2, .switch h2, .price h2 { margin: 0 0 12px; font-weight: 800; font-stretch: 112%; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.flow-intro { margin: 0 0 44px; color: var(--muted); max-width: 52ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.steps h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; vertical-align: 1px; }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.scene { align-self: end; min-height: 150px; background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 14px; font-size: 14px; }
.scene .item-row { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.scene .add { margin-top: 10px; background: var(--teal); color: #fff; border-radius: 6px; padding: 9px; text-align: center; font-weight: 700; }
.scene .new { background: var(--docket); color: var(--navy); font-weight: 800; padding: 8px 10px; border-radius: 6px; margin-bottom: 10px; }
.scene .mins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.scene .mins span { text-align: center; padding: 10px 0; border-radius: 6px; background: var(--steel); font-weight: 700; }
.scene .mins span.on { background: var(--teal); color: #fff; }
.scene .stub { background: var(--paper); border: 1px dashed #b9b9b0; padding: 10px 12px; font: 500 13px/1.5 "Plex Mono", ui-monospace, monospace; white-space: pre; }
.scene.ready { font-size: 15px; } .scene.ready strong { display: block; font-size: 26px; font-stretch: 112%; color: var(--teal-dark); }

/* Ayrıca */
.more { padding: 84px 0; background: #fff; }
.more .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.more dl { margin: 0; display: grid; gap: 22px; }
.more dt { font-weight: 700; font-size: 19px; }
.more dd { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }

/* GloriaFood'dan geçiş */
.switch { background: var(--navy-2); color: #fff; padding: 72px 0; }
.switch .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.switch p { margin: 0; color: #c7d2dd; max-width: 58ch; }

/* Fiyat */
.price { padding: 84px 0 96px; }
.price-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 32px; }
.price-total { font-weight: 850; font-stretch: 118%; font-size: clamp(54px, 8vw, 96px); line-height: .95; }
.price-total small { display: block; font-size: 20px; font-weight: 600; font-stretch: 100%; color: var(--muted); margin-top: 10px; }
.price-lines { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.price-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-lines li span:last-child { font-weight: 700; white-space: nowrap; }
.price-note { color: var(--muted); font-size: 15.5px; margin: 18px 0 26px; }

.site-foot { background: var(--navy); color: #9fb0c0; padding: 34px 0; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
body.brand .site-foot a { color: #fff; text-decoration: none; }
.site-foot .wrap > :first-child { margin-right: auto; }

/* Giriş, kayıt, parola ekranları */
body.brand.auth { background: var(--steel); min-height: 100vh; }
.auth-main { max-width: 460px; margin: 0 auto; padding: 48px 20px 80px; }
body.brand.auth .card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; box-shadow: none; }
body.brand.auth .card h2 { font-weight: 800; font-stretch: 112%; font-size: 28px; line-height: 1.1; }
body.brand.auth button.primary { background: var(--teal); border-radius: 6px; min-height: 50px; font-size: 17px; }
body.brand.auth input { border-radius: 6px; border-color: var(--line); background: #fff; color: var(--ink); }
body.brand.auth .auth-wide { max-width: 760px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; gap: 8px; }
  .hero-actions { padding-bottom: 40px; }
  .printer { width: min(300px, 100%); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more .wrap, .price-panel, .switch .wrap { grid-template-columns: 1fr; }
  .switch .wrap { align-items: start; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .site-nav a:not(.btn) { display: none; }
  .mark small { display: none; }
  .hero-lead { font-size: 18px; }
  .steps { grid-template-columns: 1fr; }
  .ticket { font-size: 13px; padding: 22px 14px 26px; }
}
@media (max-width: 400px) { body.brand .site-nav .btn-go { padding: 0 12px; font-size: 15px; } .mark span { font-size: 15px; } }

/* Hoş geldin (davet bağlantısı): solda şifre, sağda hazır olanlar */
body.brand.auth .auth-welcome { max-width: 1000px; }
.wl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
body.brand.auth .wl-title { margin: 0; font-weight: 800; font-stretch: 112%; font-size: 30px; line-height: 1.1; }
body.brand.auth .wl-card input[readonly] { background: var(--steel); color: #5b6470; }
.wl-side h3 { margin: 0; font-size: 17px; }
.wl-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.wl-list li { display: flex; gap: 10px; align-items: flex-start; }
.wl-mk { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 2px solid #b9c4c8; box-sizing: border-box; }
.wl-list li.ok .wl-mk { background: #1d7a46; border-color: #1d7a46; color: #fff; }
@media (max-width: 860px) { .wl-grid { grid-template-columns: 1fr; } }
