/*
 * The start page of tiely.io: a navy hero where two phones meet and their rings interlock, then the app's
 * steps, cards, meetings and data promises. Fonts are served from /fonts (SIL Open Font License, see OFL*.txt),
 * so no request leaves for a font service.
 */
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("/fonts/plus-jakarta-sans-bold.woff2") format("woff2");
    font-weight: 700 800;
    font-display: swap;
}
@font-face {
    font-family: "Caveat";
    src: url("/fonts/caveat-semibold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Fraunces";
    src: url("/fonts/fraunces-semibold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

.start {
    --night: #0F1A33;
    --muted: #5A6480;
    --sage: #A3D5C3;
    --sky: #CFE3F7;
    --mint: #D9F0E3;
    --lilac: #E9DDF7;
    --pastel: #FFE7D6;
    --gutter: 64px;
    font-size: 18px;
    overflow-x: hidden;
}
.start a { color: inherit; }
.start a:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.start .brand img { display: block; height: 40px; width: auto; }

/* Hero */
.start .hero {
    background: var(--navy);
    color: var(--blush);
    border-radius: 0 0 48px 48px;
    padding: 28px var(--gutter) 0;
    overflow: hidden;
}
/* One content width for all: 1152px of content, the gutter outside it. */
.start .nav, .start .hero-grid, .start .cta {
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
}
.start .section, .start .start-footer {
    max-width: calc(1152px + 2 * var(--gutter));
    margin-left: auto;
    margin-right: auto;
}
.start h1 .line { white-space: nowrap; }
.start .nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.start .nav-links { display: flex; gap: 28px; font-size: 16px; font-weight: 600; }
.start .nav-end { display: flex; align-items: center; gap: 28px; }
/* On the navy hero the active language gets a light ground instead of the navy one from tiely.css. */
.start .languages a[aria-current="page"] { background: rgba(255, 242, 239, 0.16); }
.start .languages img { box-shadow: 0 0 0 1px rgba(255, 242, 239, 0.25); }
.start .nav-links a { text-decoration: none; opacity: 0.85; }
.start .nav-links a:hover { opacity: 1; }
.start .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 660px;
}
.start h1 {
    font-size: 66px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
}
.start h1 .second { display: block; color: var(--peach); }
.start .lead { font-size: 20px; max-width: 30em; color: #E3E6F0; margin: 0 0 32px; }
.start .soon { display: flex; gap: 12px; flex-wrap: wrap; }
.start .soon span {
    display: inline-flex;
    flex-direction: column;
    border: 2px solid rgba(255, 242, 239, 0.35);
    border-radius: 16px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
}
.start .soon small { font-weight: 400; font-size: 13px; color: #A8B0C8; }
.start .hand {
    display: inline-block;
    margin-top: 26px;
    font-family: "Caveat", cursive;
    font-size: 30px;
    color: var(--rose);
    transform: rotate(-4deg);
}

/*
 * The orchestrated moment, like an exchange in the app. It repeats every 8 seconds:
 *   0–27.5 % the phones send out signal rings, wait, then close in; the rings on their screens come closer too
 *   27.5 %   a gentle bump: the rings interlock like the logo, the signals stop, "Verbunden" and "Neuer Kontakt!" show
 *   34–80 %  the phones rest together
 *   80–100 % the phones part again, smoothly, back to where the round began; their rings stay linked
 * Nothing in the stage takes clicks.
 */
.start .stage { position: relative; height: 660px; align-self: end; pointer-events: none; }
.start .nav { position: relative; z-index: 1; }
.start .phone {
    position: absolute;
    bottom: -40px;
    width: 230px;
    height: 470px;
    border-radius: 40px;
    background: var(--night);
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.start .screen {
    height: 100%;
    border-radius: 31px;
    background: var(--blush);
    color: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 12px;
}
.start .screen b { font-size: 21px; font-weight: 800; }
/* Texts that change at the match, like in the app: both lie on top of each other and cross-fade. */
.start .swap { display: grid; justify-items: center; }
.start .swap > span { grid-area: 1 / 1; white-space: nowrap; }
.start .swap .before { animation: rings-apart 8s linear infinite both; }
.start .swap .after { animation: rings-woven 8s linear infinite both; }
.start .screen i { font-style: normal; font-size: 13px; color: var(--muted); }
.start .disc {
    position: relative;
    width: 138px;
    height: 138px;
    margin-top: 12px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}
.start .disc svg { width: 110px; height: 62px; overflow: visible; }
/* Without motion the rings simply show linked. */
.start .disc .apart, .start .swap .before { opacity: 0; }
/*
 * Signal rings going out from the circle, rose and peach in turn, coming quicker as the phones close in.
 * Behind the screen (z-index -1 in the phone's stacking context), so they show around the phone, not over it.
 */
.start .signal {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    border: 5px solid var(--rose);
    opacity: 0;
}
.start .signal.s2 { border-color: var(--peach); }
.start .phone.left { left: 30px; transform: rotate(-8deg); animation: meet-left 8s infinite both; }
.start .phone.right { right: 10px; transform: rotate(8deg); animation: meet-right 8s infinite both; }
.start .disc .apart { animation: rings-apart 8s linear infinite both; }
.start .disc .woven { animation: rings-woven 8s linear infinite both; }
.start .disc .ring-l { animation: ring-left 8s infinite both; }
.start .disc .ring-r { animation: ring-right 8s infinite both; }
.start .signal.s1 { animation: signal-1 8s ease-out infinite both; }
.start .signal.s2 { animation: signal-2 8s ease-out infinite both; }
.start .signal.s3 { animation: signal-3 8s ease-out infinite both; }
/* Closing in gathers speed gently; the bump overshoots only a little. Parting eases in and out. */
@keyframes meet-left {
    0%, 10% { transform: translateX(-140px) rotate(-14deg); animation-timing-function: cubic-bezier(.45, 0, .75, .6); }
    27.5% { transform: translateX(12px) rotate(-7deg); animation-timing-function: ease-out; }
    34%, 80% { transform: translateX(0) rotate(-8deg); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
    100% { transform: translateX(-140px) rotate(-14deg); }
}
@keyframes meet-right {
    0%, 10% { transform: translateX(140px) rotate(14deg); animation-timing-function: cubic-bezier(.45, 0, .75, .6); }
    27.5% { transform: translateX(-12px) rotate(7deg); animation-timing-function: ease-out; }
    34%, 80% { transform: translateX(0) rotate(8deg); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
    100% { transform: translateX(140px) rotate(14deg); }
}
/* The rings on the screens: apart while waiting, closer as the phones close in, linked from the bump on. */
@keyframes ring-left {
    0%, 10% { transform: translateX(-46px); animation-timing-function: cubic-bezier(.45, 0, .75, .6); }
    27.5% { transform: translateX(-30px); animation-timing-function: linear; }
    28.5%, 100% { transform: translateX(0); }
}
@keyframes ring-right {
    0%, 10% { transform: translateX(46px); animation-timing-function: cubic-bezier(.45, 0, .75, .6); }
    27.5% { transform: translateX(30px); animation-timing-function: linear; }
    28.5%, 100% { transform: translateX(0); }
}
@keyframes rings-apart {
    0% { opacity: 0; }
    6%, 27.5% { opacity: 1; }
    28.5%, 100% { opacity: 0; }
}
@keyframes rings-woven {
    0% { opacity: 1; }
    6%, 27.5% { opacity: 0; }
    28.5%, 100% { opacity: 1; }
}
/* Three signals, each starting a little sooner after the last; none after the bump. */
@keyframes signal-1 {
    0% { transform: scale(1); opacity: 0.9; }
    11%, 100% { transform: scale(3.2); opacity: 0; }
}
@keyframes signal-2 {
    0%, 9% { transform: scale(1); opacity: 0; }
    9.1% { opacity: 0.9; }
    19%, 100% { transform: scale(3.2); opacity: 0; }
}
@keyframes signal-3 {
    0%, 16% { transform: scale(1); opacity: 0; }
    16.1% { opacity: 0.9; }
    25%, 100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .start .phone, .start .signal, .start .disc g, .start .swap > span { animation: none; }
}

/* Sections */
.start .section { padding: 110px var(--gutter) 0; }
.start h2 {
    font-size: 46px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    max-width: 16em;
    text-wrap: balance;
}
.start h3 { font-weight: 800; }
.start .intro { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0; }

.start .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
}
.start .steps li { position: relative; padding-top: 78px; }
.start .num {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--peach);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}
.start .steps li:nth-child(2) .num { background: var(--rose); }
.start .steps li:nth-child(3) .num { background: var(--navy); color: var(--peach); }
.start .steps h3 { font-size: 23px; margin: 0 0 8px; letter-spacing: -0.01em; }
.start .steps p { margin: 0; color: var(--muted); }

.start .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }

/* A fan of three cards in the app's styles: Klar, Pastell, Nacht. */
.start .fan { position: relative; height: 440px; }
.start .vcard {
    position: absolute;
    width: 300px;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 22px 50px rgba(26, 42, 79, 0.18);
}
.start .vcard .row { display: flex; align-items: center; gap: 14px; }
.start .vcard .av {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--navy);
}
.start .vcard .nm { font-size: 24px; font-weight: 700; line-height: 1.1; }
.start .vcard .gr { font-size: 14px; margin-top: 4px; }
/* One line per detail as in the app: a round icon and the detail itself, drawn as a bar. */
.start .vcard .lines { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.start .vcard .lines span { display: flex; align-items: center; gap: 10px; }
.start .vcard .lines i { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.start .vcard .lines b { height: 8px; border-radius: 4px; width: 130px; background: currentColor; opacity: 0.22; }
.start .vcard .lines span:nth-child(2) b { width: 160px; }
.start .vcard .lines span:nth-child(3) b { width: 100px; }
.start .vcard .lines span:nth-child(4) b { width: 140px; }
.start .stk {
    position: absolute;
    top: -14px;
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 4px 10px rgba(26, 42, 79, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.start .v1 { left: 0; top: 90px; background: var(--white); transform: rotate(-9deg); }
.start .v1 .av { background: var(--sage); }
.start .v1 .gr { color: var(--muted); }
.start .v1 .lines i { background: #F3EDEB; }
.start .v2 { left: 120px; top: 10px; background: var(--pastel); transform: rotate(3deg); }
.start .v2 .av { background: var(--rose); }
.start .v2 .nm { font-family: "Fraunces", Georgia, serif; font-weight: 600; }
.start .v2 .gr { color: var(--muted); }
.start .v2 .lines i { background: rgba(255, 255, 255, 0.75); }
.start .v3 { left: 200px; top: 200px; background: var(--navy); color: var(--blush); transform: rotate(11deg); }
.start .v3 .av { background: var(--peach); }
.start .v3 .nm { font-family: "Caveat", cursive; font-size: 34px; font-weight: 600; white-space: nowrap; }
.start .v3 .gr { color: var(--peach); }
.start .v3 .lines i { background: rgba(255, 242, 239, 0.14); }
.start .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.start .chips li { border-radius: 999px; padding: 8px 16px; background: var(--white); font-size: 15px; font-weight: 600; }

/* The meeting timeline, as on the meeting page in the app. */
.start .timeline { background: var(--white); border-radius: 28px; padding: 28px 30px; box-shadow: 0 22px 50px rgba(26, 42, 79, 0.10); }
.start .timeline .t { font-size: 24px; font-weight: 800; }
.start .timeline .m { color: var(--muted); font-size: 15px; margin: 2px 0 18px; }
.start .tday { display: flex; gap: 16px; position: relative; padding-bottom: 18px; }
.start .tday:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--peach); }
.start .tday .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--rose); margin-top: 5px; flex-shrink: 0; }
.start .tday b { font-size: 15px; }
.start .faces { display: flex; margin-top: 8px; }
.start .faces span {
    width: 38px;
    height: 38px;
    margin-left: -8px;
    border-radius: 50%;
    border: 3px solid var(--white);
    background: var(--peach);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.start .faces span:first-child { margin-left: 0; }
.start .faces span:nth-child(5n+2) { background: var(--rose); }
.start .faces span:nth-child(5n+3) { background: var(--sky); }
.start .faces span:nth-child(5n+4) { background: var(--mint); }
.start .faces span:nth-child(5n+5) { background: var(--lilac); }

.start .promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.start .promise h3 { font-size: 22px; margin: 0 0 6px; }
.start .promise p { margin: 0; color: var(--muted); }

/* Closing call: there is nothing to download yet, so the store buttons say "bald". */
.start .cta {
    margin-top: 120px;
    background: var(--rose);
    border-radius: 40px;
    padding: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
}
.start .cta h2 { margin: 0 0 10px; }
.start .cta p { margin: 0; font-size: 19px; }
.start .cta .soon span { border-color: rgba(26, 42, 79, 0.35); background: rgba(255, 255, 255, 0.35); }
.start .cta .soon small { color: var(--navy); opacity: 0.75; }

.start .start-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 56px var(--gutter) 48px;
    font-size: 15px;
}
.start .footer-links { display: flex; flex-wrap: wrap; gap: 24px; }

.start .cta { width: calc(100% - 2 * var(--gutter)); }

/* Tablets and phones: everything in one column, the phones a little smaller. */
@media (max-width: 960px) {
    .start { --gutter: 24px; font-size: 17px; }
    .start .nav-links { display: none; }
    .start .hero { border-radius: 0 0 32px 32px; }
    .start .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 40px; }
    .start h1 { font-size: clamp(32px, 9.6vw, 46px); }
    .start .lead { font-size: 18px; }
    .start .stage { height: 440px; width: 100%; max-width: 420px; margin: 0 auto; }
    .start .phone { width: 170px; height: 350px; bottom: -40px; border-radius: 32px; padding: 8px; }
    .start .screen { border-radius: 25px; padding-top: 26px; gap: 8px; }
    .start .screen b { font-size: 17px; }
    .start .disc { width: 104px; height: 104px; }
    .start .disc svg { width: 84px; height: 47px; }
    .start .phone.left { left: 8px; }
    .start .phone.right { right: 8px; }
    .start .section { padding-top: 80px; }
    .start h2 { font-size: 34px; }
    .start .steps, .start .promise { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .start .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .start #karte .fan { order: 2; }
    .start .fan { height: 400px; max-width: 360px; }
    .start .vcard { width: 250px; padding: 18px; }
    .start .vcard .nm { font-size: 20px; }
    .start .v2 { left: 70px; }
    .start .v3 { left: 90px; top: 210px; }
    .start .v3 .nm { font-size: 28px; }
    .start .cta { margin-top: 80px; padding: 36px 28px; border-radius: 28px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .start .start-footer { flex-direction: column; align-items: flex-start; }
}
