﻿/* „Odpisz trudnemu klientowi” (05.10.2026) - style tylko dla tego narzędzia.
   iris = szkic przygotowany przez AI, lime = szkic zatwierdzony przez człowieka. */

.o-hero { padding: 150px 0 40px; }
.o-hero .tag { display: inline-flex; gap: 8px; align-items: center; background: var(--iris-soft); color: var(--iris); font-weight: 600; font-size: 14.5px; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.o-hero h1 { font-size: clamp(42px, 6.4vw, 92px); letter-spacing: -0.035em; line-height: .95; font-variation-settings: "wdth" 86; margin-bottom: 22px; max-width: 14em; }
.o-hero h1 .ai { color: var(--iris); }
.o-hero h1 .ok { color: var(--lime-deep); }
.o-hero .lede { margin-bottom: 8px; }
.o-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.o-legend span { display: inline-flex; align-items: center; gap: 8px; }
.o-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.o-legend .li { background: var(--iris); }
.o-legend .ll { background: var(--lime); }

.o-tool-sec { padding: 20px 0 60px; }
.o-card [hidden], .o-result [hidden] { display: none !important; }
.o-card { background: var(--paper); border-radius: var(--r-xl); padding: 36px; box-shadow: 0 30px 60px -45px rgba(14, 27, 23, .45); }

/* Ostrzeżenie RODO */
.o-rodo { display: flex; gap: 14px; align-items: flex-start; background: #fff4e5; border: 1px solid #f3d5a6; color: #5a3c06; border-radius: var(--r-m); padding: 14px 16px; margin-bottom: 22px; font-size: 15px; line-height: 1.5; }
.o-rodo b { display: block; font-size: 16px; color: #3f2a03; }
.o-rodo svg { flex: none; margin-top: 2px; }

.o-form { display: grid; gap: 18px; }
.o-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.o-label { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 8px; }
.o-label small { font-weight: 400; color: var(--sage); }
.o-ta-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.o-ex { background: none; border: 0; color: var(--iris); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.o-ex:hover { color: #2f3de0; }
textarea.o-in { width: 100%; min-height: 190px; resize: vertical; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; padding: 14px 16px; font-family: var(--text); font-size: 16px; line-height: 1.55; color: var(--ink); }
textarea.o-in:focus { outline: 3px solid var(--iris); outline-offset: 1px; border-color: transparent; }
.o-count { font-size: 13.5px; color: var(--sage); text-align: right; margin-top: 6px; }
.o-count.max { color: #b3261e; font-weight: 600; }

.o-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.o-opts > * { min-width: 0; }
.o-opts select { width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e1b17' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; padding: 13px 38px 13px 14px; font-family: var(--text); font-size: 15.5px; color: var(--ink); cursor: pointer; }
.o-opts select:focus { outline: 3px solid var(--iris); outline-offset: 1px; }

.o-goals { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.o-goals legend { font-weight: 600; font-size: 15.5px; margin-bottom: 8px; }
.o-goals label { position: relative; }
.o-goals input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.o-goals span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(14, 27, 23, .2); font-size: 15px; font-weight: 500; cursor: pointer; background: #fff; }
.o-goals input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.o-goals input:focus-visible + span { outline: 3px solid var(--iris); outline-offset: 2px; }

.o-send { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.o-send .btn[disabled] { opacity: .6; cursor: wait; }
.o-ainfo { font-size: 13.5px; color: var(--sage); line-height: 1.5; max-width: 52em; }
.o-ainfo a { text-decoration: underline; }

.o-mask { background: var(--porcelain); border-radius: var(--r-m); padding: 12px 16px; font-size: 14.5px; color: var(--ink-2); }
.o-mask b { color: var(--ink); }
.o-mask details { margin-top: 6px; }
.o-mask summary { cursor: pointer; color: var(--iris); font-weight: 600; }
.o-mask pre { white-space: pre-wrap; word-break: break-word; font-family: var(--text); font-size: 14px; color: var(--sage); margin-top: 8px; max-height: 220px; overflow: auto; }

.o-msg { border-radius: var(--r-m); padding: 14px 16px; font-size: 15.5px; background: #fde8e6; color: #7a1c14; }

/* Ładowanie */
.o-loading { display: flex; align-items: center; gap: 14px; padding: 28px 0 0; color: var(--iris); font-weight: 600; }
.o-loading i { width: 12px; height: 12px; border-radius: 50%; background: var(--iris); animation: o-pulse 1s ease-in-out infinite; }
.o-loading i:nth-child(2) { animation-delay: .15s; }
.o-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes o-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* Wynik */
.o-result { margin-top: 36px; }
.o-res-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 18px; }
.o-res-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.o-time { font-size: 15.5px; color: var(--ink-2); }
.o-time b { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.o-time small { display: block; color: var(--sage); font-size: 13.5px; }
.o-demo { display: inline-block; background: var(--ink); color: var(--lime); font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }

.o-drafts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.o-drafts > * { min-width: 0; }
.o-draft { border: 2px solid var(--iris); background: #fff; border-radius: var(--r-l); padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.o-draft-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.o-draft h3 { font-size: 22px; }
.o-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--iris-soft); color: var(--iris); }
.o-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.o-draft textarea { width: 100%; min-height: 330px; resize: vertical; border: 1px solid var(--iris-soft); border-radius: var(--r-m); background: #fbfbff; padding: 14px 16px; font-family: var(--text); font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.o-draft textarea:focus { outline: 3px solid var(--iris); outline-offset: 1px; }
.o-draft-meta { font-size: 13.5px; color: var(--sage); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.o-fill { color: #8a5a00; font-weight: 600; }
.o-draft-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-iris { background: var(--iris); color: #fff; }
.btn-iris:hover { background: #3a48f0; box-shadow: 0 12px 30px -12px rgba(77, 91, 255, .7); }
.o-undo { background: none; border: 0; font: inherit; font-size: 14.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 2px; }
.o-copied { font-size: 14px; font-weight: 600; color: var(--lime-deep); }

/* Stan: zatwierdzone przez człowieka */
.o-draft.is-ok { border-color: var(--lime); background: var(--lime-soft); box-shadow: 0 24px 50px -30px rgba(79, 125, 11, .55); }
.o-draft.is-ok .o-badge { background: var(--lime); color: var(--ink); }
.o-draft.is-ok textarea { border-color: rgba(79, 125, 11, .25); background: #fff; }
.o-draft.is-ok .btn-iris { background: var(--lime); color: var(--ink); cursor: default; box-shadow: none; }

.o-aiact { margin-top: 16px; font-size: 14.5px; color: var(--sage); max-width: 60em; }

/* CTA pod wynikiem */
.o-cta { margin-top: 28px; background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.o-cta h2 { color: var(--paper); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; margin-bottom: 12px; }
.o-cta h2 span { color: var(--lime); }
.o-cta p { color: #a9b6b0; font-size: 16.5px; }
.o-cta .acts { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.o-cta .btn-soft { background: rgba(255, 255, 255, .1); color: var(--paper); }
.o-cta .btn-soft:hover { background: rgba(255, 255, 255, .18); }

/* Jak to działa */
.o-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.o-how > div { background: var(--paper); border-radius: var(--r-l); padding: 24px; }
.o-how b { font-family: var(--display); font-size: 19px; display: block; margin-bottom: 8px; letter-spacing: -0.015em; }
.o-how p { font-size: 15px; color: var(--sage); }
.o-how .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--iris-soft); color: var(--iris); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.o-how .n.ok { background: var(--lime); color: var(--ink); }

/* FAQ (jak na /zespol-ai/) */
.faq { max-width: 920px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 56px 22px 0; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); cursor: pointer; position: relative; line-height: 1.25; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-family: var(--text); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); background: var(--lime); }
.faq-a { display: none; padding: 0 0 22px; }
.faq-a.open { display: block; }
.faq-a p { font-size: 17px; color: var(--sage); max-width: 44em; }

.o-nl-sec { padding: 20px 0 100px; }

@media (prefers-reduced-motion: reduce) { .o-loading i { animation: none; opacity: 1; } }

@media screen and (max-width: 900px) {
  .o-hero { padding: 120px 0 28px; }
  .o-drafts, .o-cta { grid-template-columns: 1fr; }
  .o-how { grid-template-columns: 1fr; }
}
@media screen and (max-width: 760px) {
  .o-hero { padding: 104px 0 20px; }
  .o-card { padding: 22px 18px; border-radius: var(--r-l); }
  .o-opts { grid-template-columns: 1fr; }
  .o-draft { padding: 16px; }
  .o-draft textarea { min-height: 300px; font-size: 15px; }
  .o-cta { padding: 28px 22px; }
  .o-send .btn { width: 100%; }
  .faq-q { font-size: 19px; }
  .o-nl-sec { padding-bottom: 60px; }
}
