/* SEWftware website.
   Identity from the logo: ink navy and thread orange. The one recurring device
   is the running stitch (a dashed orange line), used where something is "sewn":
   the hero headline, section breaks, the call-to-action patch. */

@font-face {
  font-family: "Lexend";
  src: url("/static/fonts/lexend-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lexend";
  src: url("/static/fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
                 U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1B2A4A;
  --navy-deep: #121D35;
  --denim: #3A4F7A;
  --thread: #E0612B;          /* the logo's orange: stitches and accents */
  --thread-ink: #BD4A17;      /* orange for text and buttons (readable on white) */
  --thread-ink-dark: #9E3C10;
  --paper: #FFFFFF;
  --bg: #F4F6FA;
  --text: #22304F;
  --muted: #56627C;
  --faint: #8590A6;
  --line: #DCE1EA;
  --ok: #17703E;
  --ok-bg: #E6F4EC;
  --warn: #7F5200;
  --warn-bg: #FFF4DC;
  --bad: #B42318;
  --bad-bg: #FCEBEA;
  --radius: 14px;
  --radius-s: 10px;
  --lift: 0 1px 2px rgba(18, 29, 53, .06), 0 10px 30px -12px rgba(18, 29, 53, .18);
  --font: "Lexend", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 16px; line-height: 1.6; font-weight: 350;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, h3 { color: var(--navy); font-weight: 650; line-height: 1.15; letter-spacing: -.015em; }
b, strong { font-weight: 600; }
a { color: var(--thread-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, video { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 2px; border-radius: 4px; }
::selection { background: #F9D5C3; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 480px; }
.narrow-wide { max-width: 780px; }
.center { text-align: center; }
.mt { margin-top: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { font-size: 13px; color: var(--faint); margin-top: 6px; }
.stack > * + * { margin-top: 16px; }
.stack > h3:not(:first-child) { margin-top: 26px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- stitch */
.stitch {
  display: block; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--thread) 0 14px, transparent 14px 22px);
}

/* ---------------------------------------------------------------- header */
.top { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
       border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 23px;
         letter-spacing: -.02em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand .sew { color: var(--thread); font-weight: 700; }
.brand .ftware { color: var(--navy); font-weight: 400; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a, .nav button.link { color: var(--muted); padding: 8px 12px; border-radius: 9px; font-size: 15px; font-weight: 450; }
.nav a:hover, .nav button.link:hover { background: #EEF1F6; color: var(--navy); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav .btn { margin-left: 8px; }
.nav form { margin: 0; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px;
               padding: 8px 12px; font: inherit; color: var(--navy); cursor: pointer; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--navy);
  border-radius: 11px; padding: 11px 20px; font: inherit; font-weight: 550; font-size: 15px;
  cursor: pointer; text-align: center; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: #F0F3F8; border-color: #C9D0DD; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--thread-ink); border-color: var(--thread-ink); color: #fff; }
.btn.primary:hover { background: var(--thread-ink-dark); border-color: var(--thread-ink-dark); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-deep); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.btn.big { padding: 15px 28px; font-size: 17px; border-radius: 13px; }
.btn.danger { color: var(--bad); border-color: #EFB1AC; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; font: inherit; cursor: pointer; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: #DCE3F0;
  background-color: var(--navy);
  /* twill weave: the fabric the design is sewn on */
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 6px),
    radial-gradient(1200px 520px at 78% 40%, #25385F 0%, rgba(27, 42, 74, 0) 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
              padding-top: 72px; padding-bottom: 84px; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; letter-spacing: -.03em;
           line-height: 1.04; margin: 0 0 8px; }
.hero .stitch-draw { display: block; width: min(420px, 80%); height: 4px; margin: 18px 0 26px; }
.hero .stitch-draw path { stroke: var(--thread); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 14 9;
                          fill: none; }
.hero .lead { font-size: 19px; line-height: 1.6; max-width: 34em; margin: 0 0 32px; color: #C6D0E2; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .reassure { margin: 18px 0 0; font-size: 14px; color: #93A1BD; }

/* before/after in a hoop */
.hoop { position: relative; width: min(520px, 100%); margin-left: auto; aspect-ratio: 1; }
.hoop-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #E9DDC8, #C9B391 55%, #A88D66);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 2px 3px rgba(255, 255, 255, .5);
}
.hoop-fabric { position: absolute; inset: 14px; border-radius: 50%; overflow: hidden; background: #F0F1F5;
               box-shadow: inset 0 0 0 5px #8E7652, inset 0 6px 18px rgba(0, 0, 0, .25); }
.hoop-fabric img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.hoop-fabric .before { clip-path: inset(0 calc(100% - var(--cut, 50%)) 0 0); }
.hoop-divider { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 0;
                border-left: 3px dashed var(--thread); transform: translateX(-1.5px); pointer-events: none; }
.hoop-knob { position: absolute; top: 50%; left: var(--cut, 50%); width: 46px; height: 46px; margin: -23px 0 0 -23px;
             border-radius: 50%; background: var(--thread); color: #fff; display: grid; place-items: center;
             box-shadow: 0 6px 16px rgba(0, 0, 0, .35); pointer-events: none; font-size: 18px; font-weight: 700; }
.hoop-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.hoop-range:focus-visible + .hoop-knob { outline: 3px solid #fff; outline-offset: 3px; }
.hoop-labels { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; justify-content: space-between;
               font-size: 13px; color: #93A1BD; padding: 0 22%; }
.hoop-caption { margin: 52px 0 0; font-size: 14px; color: #93A1BD; text-align: right; }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.section.white { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 0 0 14px; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }
.section-head .stitch { width: 88px; margin-bottom: 22px; }

/* how it works: a real sequence */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; margin-bottom: 56px; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
                width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
                border: 2px dashed var(--thread); color: var(--thread-ink); font-weight: 700; font-size: 18px; }
.step h3 { font-size: 21px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); }
.window { border-radius: 14px; overflow: hidden; background: #E6EAF1; border: 1px solid #CDD4E0;
          box-shadow: 0 40px 80px -40px rgba(18, 29, 53, .45); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #fff;
              border-bottom: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #DCE1EA; }
.window-bar span { margin-left: 10px; }

/* machines */
.machines { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.machine { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
           box-shadow: var(--lift); }
.machine.home { border-top: 5px solid var(--thread); }
.machine.industrial { border-top: 5px solid var(--navy); }
.machine h3 { font-size: 24px; margin: 0 0 6px; }
.machine > p { margin: 0 0 20px; color: var(--muted); }
.machine dl { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 0; }
.machine dt, .machine dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--line); }
.machine dt { color: var(--muted); }
.machine dd { text-align: right; font-weight: 550; color: var(--navy); font-variant-numeric: tabular-nums; }
.machine .brands { margin: 22px 0 0; font-size: 14px; color: var(--faint); }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; align-items: center; }
.formats span.f { font-weight: 600; color: var(--navy); background: var(--paper); border: 1.5px dashed #B9C2D3;
                  border-radius: 9px; padding: 7px 14px; font-size: 15px; letter-spacing: .02em; }
.formats .label { color: var(--muted); margin-right: 6px; }

/* sewing video */
.sew-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.sew-video { border-radius: 22px; overflow: hidden; background: #EEF0F5; box-shadow: var(--lift); aspect-ratio: 1; }
.sew-video video { width: 100%; height: 100%; object-fit: cover; }
.points { list-style: none; margin: 28px 0 0; padding: 0; }
.points li { position: relative; padding: 0 0 20px 34px; }
.points li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 3px; border-radius: 3px;
                     background: repeating-linear-gradient(90deg, var(--thread) 0 6px, transparent 6px 9px); }
.points b { color: var(--navy); display: block; font-weight: 600; }
.points span { color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.piece { margin: 0; }
.piece img { width: 100%; border-radius: 16px; aspect-ratio: 1; object-fit: cover; box-shadow: var(--lift); background: #E9ECF2; }
.piece figcaption { padding: 14px 4px 0; }
.piece b { display: block; color: var(--navy); font-weight: 600; }
.piece span { font-size: 14px; color: var(--muted); }

/* more features: a plain list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 48px; }
.feature h3 { font-size: 18px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); }

/* questions */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
               font-size: 18px; font-weight: 550; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 26px; font-weight: 300;
                      color: var(--thread-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* call to action: an embroidered patch */
.patch-wrap { padding: 24px 0 110px; }
.patch { position: relative; background: var(--navy); color: #C6D0E2; border-radius: 28px; padding: 64px 56px;
         display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
         box-shadow: 0 30px 60px -30px rgba(18, 29, 53, .6); }
.patch::before { content: ""; position: absolute; inset: 12px; border-radius: 20px; pointer-events: none;
                 border: 3px dashed rgba(224, 97, 43, .85); }
.patch h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; }
.patch p { margin: 0; font-size: 18px; max-width: 36em; }

/* ---------------------------------------------------------------- pages */
.page { padding-top: 48px; padding-bottom: 72px; }
.page h1 { font-size: clamp(30px, 3.6vw, 40px); margin: 0 0 24px; }
.page-head { margin-bottom: 32px; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { margin: 0; font-size: 18px; color: var(--muted); max-width: 40em; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
        box-shadow: var(--lift); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; }
.card > p.muted { color: var(--muted); }

/* download */
.download { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.download-main { padding: 36px; }
.download-main .btn { margin: 22px 0 12px; }
.sys { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.howto { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.howto li { position: relative; padding: 0 0 22px 50px; }
.howto li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px;
                    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
                    border: 2px dashed var(--thread); color: var(--thread-ink); font-weight: 700; font-size: 15px; }
.howto b { display: block; color: var(--navy); font-weight: 600; }
.howto span { color: var(--muted); font-size: 15px; }

/* forms */
.auth { padding: 56px 0 80px; }
.form-card { margin: 0 auto; padding: 36px; }
.form-card h1 { font-size: 28px; margin: 0 0 8px; }
.form-card .sub { color: var(--muted); margin: 0 0 22px; }
.card .stitch { width: 64px; margin-bottom: 20px; }
label { display: block; font-weight: 550; font-size: 14px; margin: 16px 0 7px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search],
textarea, select {
  width: 100%; border: 1.5px solid #D2D8E3; border-radius: 11px; padding: 12px 14px; font: inherit; font-weight: 400;
  background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--thread); box-shadow: 0 0 0 4px #FBE3D8; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); line-height: 1.55; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--thread-ink); flex: 0 0 auto; }
.form-foot { margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.form-foot a + a { margin-left: 14px; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.perks li { padding-left: 24px; position: relative; margin-top: 6px; }
.perks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 3px;
                    background: repeating-linear-gradient(90deg, var(--thread) 0 4px, transparent 4px 7px); }

/* notices */
.alert { border-radius: var(--radius-s); padding: 13px 16px; margin: 0 0 18px; border: 1px solid; font-size: 15px; }
.alert.ok { background: var(--ok-bg); border-color: #A9D9BC; color: var(--ok); }
.alert.error { background: var(--bad-bg); border-color: #EFB1AC; color: var(--bad); }
.alert.info { background: #EEF2FA; border-color: #CAD4E8; color: var(--navy); }
.alert.warn { background: var(--warn-bg); border-color: #EFD08C; color: var(--warn); }

/* account */
.status { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pill { border-radius: 99px; padding: 4px 12px; font-weight: 600; font-size: 13px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.off { background: var(--bad-bg); color: var(--bad); }
.pill.trial { background: #FDEBE2; color: var(--thread-ink-dark); }
.countdown { font-size: 44px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.countdown small { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--faint); font-weight: 500; font-size: 13px; }
.row-actions form { display: inline; margin: 0; }
details summary { cursor: pointer; font-weight: 550; color: var(--navy); }
details[open] summary { margin-bottom: 8px; }

/* phone verification */
.verify { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; width: 220px; }
.code { font-size: 32px; letter-spacing: 6px; font-weight: 700; font-variant-numeric: tabular-nums;
        background: #FDEBE2; color: var(--thread-ink-dark); border-radius: 12px; padding: 8px 16px; display: inline-block; }
.code.small { font-size: 18px; letter-spacing: 2px; padding: 3px 10px; margin: 0 6px; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 6px; }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-top: 14px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--thread);
           animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* checkout (used when sales are open) */
.checkout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.pay-frame { width: 100%; min-height: 720px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.summary .line { display: flex; justify-content: space-between; margin: 6px 0; }
.summary .total { font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; }
.secure { font-size: 13px; color: var(--faint); margin-top: 12px; }
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; margin: 0 auto; }
.plan { text-align: center; position: relative; }
.plan.best { border: 2px solid var(--thread-ink); }
.plan .price { font-size: 38px; font-weight: 700; margin: 8px 0 2px; color: var(--navy); }
.plan .per { color: var(--faint); margin-bottom: 16px; }
.plan ul { text-align: left; padding-left: 20px; color: var(--muted); margin: 0 0 18px; }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--thread-ink);
          color: #fff; font-size: 13px; font-weight: 600; border-radius: 99px; padding: 3px 12px; }

/* legal (published when LEGAL_PUBLIC is on) */
.legal h2 { font-size: 20px; margin-top: 26px; }
.legal h3 { font-size: 16px; margin: 18px 0 8px; }
.legal p, .legal li { color: #34405A; }
.legal-body p, .legal-body li { margin: 0 0 10px; line-height: 1.65; }
.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.legal-layout article { min-width: 0; }
.legal-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.legal-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.legal-nav a:hover { background: var(--line); }
.legal-nav a[aria-current="page"] { background: var(--line); color: inherit; font-weight: 600; }
.legal-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.legal-index a.card { text-decoration: none; color: inherit; }
.legal table { margin: 10px 0 16px; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.legal th { background: #F7F8FA; font-weight: 600; }
.legal table.kunye th { width: 32%; }
.legal .onemli, .legal .ozet { border: 1px solid var(--line); background: #F7F8FA; border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.legal .onemli { border-left: 4px solid #F0B429; }
.legal .eksik { color: var(--bad); }
.legal blockquote { border-left: 3px solid var(--line); margin: 10px 0; padding: 4px 14px; }
.legal .bos-alan { border: 1px solid var(--line); border-radius: 8px; height: 140px; margin-bottom: 12px; }
.legal .form-tablo td { height: 30px; } .legal .form-tablo .imza { height: 64px; }
.legal-scroll { max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px;
                padding: 4px 16px; background: #FCFCFD; font-size: 14px; }
.legal-scroll h2 { font-size: 16px; }
@media print {
  .top, .foot, .legal-nav, [data-print] { display: none !important; }
  .legal-layout { display: block; }
  .card { border: 0; box-shadow: none; padding: 0; }
}

/* admin panel */
.admin-nav, .filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-nav a, .filters a { padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 550;
                           border: 1px solid var(--line); background: #fff; }
.admin-nav a.on, .filters a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.admin-nav a:hover, .filters a:hover { text-decoration: none; }
.filters { margin: 0 0 4px; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi { padding: 18px; }
.kpi-label { color: var(--faint); font-size: 13px; font-weight: 500; }
.kpi-value { font-size: 28px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; color: var(--navy); }
.kpi-sub { color: var(--muted); font-size: 13px; }
.admin table { font-size: 14px; }
.admin .card { overflow-x: auto; }
table.kv th { width: 120px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select, .search input { width: auto; flex: 1 1 160px; }
.inline-form input[type=number] { flex: 0 0 90px; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }
.count { font-size: 18px; font-weight: 400; }
.sub-row td { background: #FAFBFD; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--navy-deep); color: #93A1BD; padding: 56px 0 40px; font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot .brand { font-size: 21px; }
.foot .brand .ftware { color: #fff; }
.foot p { margin: 14px 0 0; max-width: 28em; }
.foot h4 { color: #fff; font-size: 14px; font-weight: 600; margin: 4px 0 12px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: #C6D0E2; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; margin-top: 8px;
              display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .hero .stitch-draw path { stroke-dashoffset: 0; animation: sew 1.6s .3s cubic-bezier(.3, .7, .2, 1) both; }
  @keyframes sew { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 980px) {
  .hero .wrap, .sew-split, .download { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 64px; padding-top: 48px; }
  .hoop { margin: 0 auto; }
  .hoop-caption { text-align: center; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
         background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; gap: 2px;
         box-shadow: 0 20px 30px -20px rgba(18, 29, 53, .3); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .nav form button { width: 100%; text-align: left; padding: 8px 12px; }
  .section { padding: 64px 0; }
  .steps-row, .machines, .features { grid-template-columns: minmax(0, 1fr); }
  .steps-row { gap: 28px; }
  .patch { grid-template-columns: minmax(0, 1fr); padding: 44px 28px; }
  .verify, .checkout, .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal table { display: block; overflow-x: auto; }
  .qr { margin: 0 auto; }
  .form-card, .download-main { padding: 26px 22px; }
  .machine { padding: 24px; }
  .hoop-labels { padding: 0 16%; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* e-mail code */
.code-input { font-size: 30px; font-weight: 600; letter-spacing: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.code-input::placeholder { color: #C9D0DD; }
.link-btn { background: none; border: 0; padding: 0 0 0 6px; font: inherit; color: var(--thread-ink); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
